htaccess

0


Is there a way to put a rewrite rule in htaccess that will convert query strings to segmented URIs? For eg.

http://domain.com/controller/method/?a=1&b=2&c=3

should get rewritten as

http://domain.com/controller/method/a/1/b/2/c/3



RewriteRule ^files/([^/]+)/([^/]+).zip /download.php?section=$1$file=$2 [NC]


http://mysite/files/games/hoopy.zip

and in the background have that transparently translated, server-side, to..

http://mysite/download.php?section=games&file=hoopy

POPULAR POSTS ::

Add multiple upload box

String Separation

Only number restrictions

Addslashes

Add and Separate more records by comma operator

The top Web development PHP frameworks

HTML Document structure and it's Syntax format