I have a .htaccess file
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
the config for the vhost looks like
<VirtualHost *:80>
ServerName elements
DocumentRoot /works/web/elements
<Directory /works/web/elements>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from 127.0.0.1
</Directory>
</VirtualHost>
But I am still getting 404 when I view pages, why is that?
AllowOverride Allenabled mod_rewrite, but I was wrong... I needed to enable mod_rewrite ... I useda2enmod rewrite– Jiew Meng May 10 '11 at 14:04