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
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