I'm having this issue which I can't figure out, I'd like to use mod_rewrite to do the following:
http://localhost/The+Beatles
into
http://localhost/artist.php?a=The+Beatles
I've tried following some examples on here and other sites and tayloring it to my needs I'm come up with the following but it's not working:
RewriteEngine on
RewriteRule ^(.*) artist.php?a=$1
It seems to set the a variable to artist.php which I can't seem to figure out? Hope someone can help.
Dave
RewriteRule ^(.*) artist.php?a=$1 [L](2)mod_rewriteis usually not easy to setup correctly from fist go, so useRewriteLog /tmp/rewrite.log+RewriteLogLevel 2so see what's going on. (3) If that does not help, tell us do you put the rules to server config or to.htaccess?