If Apache mod_rewrite isn’t working…
Posted by: chiky in Web Hosting, WordPress, chirag, linux, tags: apache, chiky, Hosting, httpd, linux, webhostingSo, this thing has been haunting me for some time. WordPress, vBulletin not able to translate the URLs. I did “httpd -M”, to find out that mod_rewrite was loaded but still it did not work. So, the solution is:
1. Make sure it is loaded: “/usr/sbin/httpd (or apache2 on various distros) -M”, if not, check /etc/httpd(or apache2)/conf/httpd.conf if “LoadModule rewrite_module modules/mod_rewrite.so” is written there.
2. See, if the httpd.conf has:
<Directory /var/www/html>
Options FollowSymLinks
AllowOverride All
</Directory>
3. If you are using Virtual Hosts, then paste this in the vhost configuration file in the <VirtualHost> section:
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
Basically, wordpress, vBulletin need FollowSymLinks Option for proper functioning of permalinks. And AllowOverride tells the server not to ignore any .htaccess files in the directories, which is used by these scripts to define rewrite rules.
After this, everything should be working… ;)


Wall RSS Feed
thanks dude :)