Tuesday, 6 September 2016

php - Unexpected behavior in mod_rewrite

I tested these mod_rewrite's



Options +FollowSymlinks

RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_URI} !-f
RewriteCond %{REQUEST_URI} !-d
RewriteRule ^(.*)\/$ /index.php?req=$1


rules at http://htaccess.madewithlove.be/




and got exactly the results I needed, as you may see in this image:



enter image description here



but when I run the very same URL in my server I receive a 404 error:



enter image description here



Any clues about why is this happening?

No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...