http://www.yoursite.com/web.php?id=scripts need it to display yoursite.com/scripts Thanks! This is what I have so far but it doesnt work: RewriteEngine On RewriteRule ^(*.)$ stores.php?id=$1 [L] Code (markup):
A good try! This one doesnt give the 500 internal server error like the one I posted, but at the same time doesnt work. Thanks for the attempt
Actually that worked! I played around with it for a minute and everything is good!!!! Thanks & rep added!
It should be (I made a typo, just change the order of . and *) RewriteEngine On RewriteRule ^(.*)$ stores.php?id=$1 [L] Code (markup):
Unfortunately that still doesnt work... How would two variables work? RewriteRule ^([A-Za-z0-9-]+)?$/([A-Za-z0-9-]+)?$ web.php?id=$1&sec=$2 [L] doesnt do it... But RewriteRule ^([A-Za-z0-9-]+)?$ web.php?id=$1 [L] works for the one variable.
Alternatively you can use 2 rules to accomplish this. e.g. RewriteRule ^([A-Za-z0-9-]+)/([A-Za-z0-9-]+)?$ web.php?id=$1&sec=$2 [L] RewriteRule ^([A-Za-z0-9-]+)?$ web.php?id=$1 [L]
The code below should work for you. Options +FollowSymlinks RewriteEngine on RewriteRule ^(.*)$ web.php?id=$1 [L] Code (markup):