How can I get Apache rewrite to do the following...
take a url received as:
domain/somename/index.php?query=1&anotherquery=2
and change it to:
domain/index.php?query=1&anotherquery=2&name=somename
cheers, Omer.
How can I get Apache rewrite to do the following...
take a url received as:
domain/somename/index.php?query=1&anotherquery=2
and change it to:
domain/index.php?query=1&anotherquery=2&name=somename
cheers, Omer.
Try this rule in your .htaccess file:
RewriteRule ^([^/]+)/index\.php$ index.php?name=$1 [QSA]