mod_rewrite not working
Filed in Development on Dec.06, 2008
I will be updating this post with issues about mod_rewrite and its resolution ways.
1. I’ve faced with the problem when I worked with denwer (dklab solution, author: Dmitry Koterov), the following .htaccess was not working and returned 404 error:
RewriteEngine On
Options +FollowSymLinks
RewriteBase /
RewriteRule ^something/(.*)$ script.php [L]
How It was resolved:
I opened apache httpd.conf file and removed MultiViews option:
BEFORE:
Options Indexes FollowSymLinks Includes Multiviews
AFTER:
Options Indexes FollowSymLinks Includes
It can also be done in .htaccess:
Options -MultiViews
Tags: apache, mod_rewrite