ModRewrite
Posted: Fri May 16, 2008 2:36 pm
I have the following modrewrite...
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^(.*)/$ ?name=$1 [nc]
I want to a few more parameters, such as:
RewriteRule ^(.*)/(.*)/(.*)/(.*)$ ?name=$1&ab=$2&cd=$3&ef=$4 [nc]
This doesn't seem to be working though. If I only have one parameter populated, then it doesn't work - 404.
Any ideas? There won't always be 4 values, but there will always be the first one.
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^(.*)/$ ?name=$1 [nc]
I want to a few more parameters, such as:
RewriteRule ^(.*)/(.*)/(.*)/(.*)$ ?name=$1&ab=$2&cd=$3&ef=$4 [nc]
This doesn't seem to be working though. If I only have one parameter populated, then it doesn't work - 404.
Any ideas? There won't always be 4 values, but there will always be the first one.