Monday, April 18, 2011

Apache Rewrite Modul Problems in Linux Ubuntu

I often have a problem with rewrite modul in Apache. When you have the same problem like me, you should check:

# RewriteBase syntax in .htaccess

# "Allow all" option in /etc/apache2/sites-enabled directory. Here are the example of 000-default file in sites-enabled directory (in tag Directory "/var/www/somedir"):
   Order allow,deny
Allow from all
AllowOverride All

# Is .htaccess file executable?

# Make sure rewrite module is loaded in Apache. When this module successfully loaded, it will appear in mods-enabled directory as rewrite.load file. You can load them by issuing:
sudo a2enmod rewrite
Just double check them. Enjoy!

No comments: