apache mod_rewrite - another regex question regarding hiding two variables

I know I'm an idiot but doesn't this rule

RewriteRule ^whatPage/(.*)/whatTag/(.*)/$ /index.php?whatPage=$1&whatTag=$2 [L]


match this url:

http://www.accumulist.com/whatPage/showOneTag/whatTag/ld%2520times/
lkrubnerAsked:
Who is Participating?
 
caterham_wwwCommented:
The RegEx should match, at least in theory. mod_rewrite should see
whatPage/showOneTag/whatTag/ld%20times/
(%2520 --> %20). Are any other rules above that rule?
0
 
sleep_furiouslyCommented:
Is this in a per-server (httpd.conf) or a per-directory (.htaccess) context?

If it is per-server, I think you need the root slash, i.e.:

RewriteRule   ^/whatPage/(.*)/whatTag/(.*)/$   /index.php?whatPage=$1&whatTag=$2 [L]
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.