- Code: Select all
RewriteEngine On
Options +FollowSymLinks
RewriteBase /dev/
RewriteRule ^test/([^/]+)/([^/]+)/?(.*)$ test/$3?%{QUERY_STRING}$1=$2 [R]
RewriteRule ^test/$ test.php [L,R]
(I have used the R flag to see what is being done)
All works well, except I don't get the ampersand between each pair.
input..... mysite.com/dev/test/var1/val1/var3/val3/
output... mysite.com/dev/test.php?var1=val1var3=val3
How do I do that ?