Hello!
I have an issue regarding a rewrite rule.
It looks like this:
RewriteEngine on
RewriteBase /photo/www/
RewriteRule ^$ index.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*) index.php?$1 [L,QSA]
I have the URI:
localhost/photo/uploads/photos/2014-01/m/resize/52d9ac4497aa1_DSC_4609.jpg?test=3
The weird fact is that, after a simple var_dump($_GET), my request will look like this:
array (size=2)
'uploads/photos/2014-01/m/resize/52d9ac4497aa1_DSC_4609_jpg' => string '' (length=0)
'test' => string '3' (length=1)
If you did not notice, why do I get “_” (underline) instead of “.” (dot)
52d9ac4497aa1_DSC_4609_jpg vs
52d9ac4497aa1_DSC_4609.jpg
I tried to replace some name and made it
“52d9ac4497559_DSC.0923.jpg” and the result is
“52d9ac4497559_DSC_0923_jpg”
Is there a reason for this “rewrite dots with underlines”?
Thanks!