Greetings to the forum
If I use just one of the below RewriteRules it works fine, but when I try to add another into the .htaccess file it doesnt work. I want mod_rewrite to detect if there is only one dir/ in the path and use that rule and move onto the next rule if there is two dir/dir/ and then finally onto the third if it detects dir/dir/dir.
RewriteEngine on
#Match only the first directory use [L] to say continue to next rule if this one doesnt match
RewriteRule ^([^/\.]+)/?$ execute/index?cmd=display&var1=$1 [L]
RewriteRule ^([^/\.]+)/([^/\.]+)/?$ execute/index?cmd=display&var1=$1&var2=$2 [L]
RewriteRule ^([^/\.]+)/([^/\.]+)/([^/\.]+)/?$ execute/index?cmd=display&var1=$1&var2=$2&var3=$3 [L]
I also tried adding the following to my .htaccess to see what debug was coming out:
RewriteLog "/path_to_log/mod.log"
RewriteLogLevel 3
As soon as I put that in I get the following error:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
TIA
-Gs