My mod_rewrite is not working. This is the mod_rewrite section:
<IfModule mod_rewrite.c> Options +FollowSymlinks # Options +SymLinksIfOwnerMatch RewriteEngine On RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ index.php [NC,L] </IfModule>
It works like a charm on Ubuntu and OS X, but does not work on EasyPHP under Windows. I uncommented the following line in apache configuration:
LoadModule rewrite_module modules/mod_rewrite.so
And I installed every single AllowOverride directive for All (this is just a local server, so it is not related to security). The vhost entry for a particular vhost that I would like to include mod_rewrite on is as follows:
<VirtualHost 127.0.0.1> DocumentRoot "E:/Dropbox/Websites/mysite/public" ServerName myvhost.mysite <Directory "E:/Dropbox/Websites/mysite/public"> Options FollowSymLinks Indexes RewriteEngine On AllowOverride All Order allow,deny Allow from all #Deny from all Require all granted </Directory> </VirtualHost>
If I put "die" at the top of the index.php file in my shared folder, this will never happen, so it seems that mod alteration never tried to redirect it to index.php. All I get is 404s.
source share