Hi,
The rule below is working as expected and redirects vol/v22 to issue.php?v=22. And it keeps showing
http://localhost/Site/vol/22/
address in a browser after redirect, with HTTP status=200:
RewriteRule ^vol/v(.*) issue.php?v=$1
But slightly modified rule works unexpected and redirects vol/v22 page to issue.php?v=22/ :
RewriteRule ^vol/(.*) issue.php?v=$1
In a browser it shows new address vol/22/?v=22 and HTTP status is:
301 Redirect to:
http://localhost/Site/vol/22/?v=22
Why this happens? I really want to use simpler form without additional v.
Please help me. I am new to mod_rewrite and regex
P.S. Web server is Apache v2.2.17 on WinXP (WAMP 2.1e)