I’m new when it comes to using rewrite_mod on apache, and I seem to be having a problem that should be easy to figure out, but I have no idea what’s going on.
What I came up with is this (assume RewriteEngine on):
rewriteRule ^(.*) /script.php?var=$1 [L]
But that returns a 500 internal error. What’s weird is if I try
rewriteRule ^test/(.*) /script.php?var=$1 [L]
and give the server a request for mysite.com/test/subdir it works. Why does it work for one and not the other? Thanks.