I've done a lot of reading on these forums and elsewhere, but I can't seem to get mod_rewrite working on my Linode despite my efforts.
I have apache2 installed, have run 'a2enmod rewrite' and /etc/init.d/apache2 restart' multiple times, but I can't seem to get mod_rewrite to work.
I looked at my phpinfo page and mod_rewrite is listed as a loaded module.
However, when I try even the simplest Rewrite rules, they simply don't work.
Here is my .htaccess file located in /var/www/.htaccess
Code:
RewriteEngine on
RewriteRule ^2227/$ index.php?s=2227 [L]
When I visit /index.php?s=2227, my site loads fine, but visiting /2227 just brings me to a 404 page and my Apache error logs reflect this saying:
Code:
File does not exist: /var/www/2227
I have my chmod 775'd my .htaccess file.
Is there anything here that I'm missing or any reason at all why mod_rewrite wouldn't be working for me in this instance?