Home Apache mod_rewrite fails with "media" in passed parameters to page
Reply: 0

Apache mod_rewrite fails with "media" in passed parameters to page

Babak
1#
Babak Published in 2018-02-09 18:02:17Z

I have the following Apache configuration

RewriteEngine  on
RewriteBase /
RewriteRule ^foo/bar/([^\/]+)/media/([^\/]+)$ foobar.php?%{QUERY_STRING}&foobar=$1&media=$2 [L]

However, this fails to work, changing "media=$2" to "_media=$2" or anything else works

RewriteEngine  on
RewriteBase /
RewriteRule ^foo/bar/([^\/]+)/media/([^\/]+)$ foobar.php?%{QUERY_STRING}&foobar=$1&_media=$2 [L]

Why would this be the case? Seems like a mystery.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.334781 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO