Hello how would you write a .htaccess modrewrite to do the following.
I simply want to be able to form my urls like this:
http://www.domainname.com/item1/item2
and it will rewrite to do the following:
http://www.domainname.com/index.php?page=item1&id=item2
Can someone please tell me how to write this mod rewrite?
thanks!
Mod Rewrite with PHP question
Moderator: General Moderators
Code: Select all
RewriteEngine on
RewriteRule (.*)/(.*)/ ?page=$1&id=$2ibbo
Where would I put this code?
thanks.
Code: Select all
RewriteEngine on
RewriteRule (.*)/(.*)/ ?page=$1&id=$2