суббота, 8 января 2011 г.

Mod_rewrite not working

This happens by two reasons. First - the mod_rewrite don't installed by default. Second - apache settings not allow mod_rewrite.

To solve first problem write this in command line:
  • sudo a2enmod rewrite - this will enable module
  • sudo /etc/init.d/apache2 restart -  this will restart apache
To solve second problem type this:
  • sudo nano /etc/apache2/sites-enabled/000-default and set AllowOverride to All (by default - None)
  • restart apache again (sudo /etc/init.d/apache2 restart).
I hope it will help you.

Комментариев нет:

Отправить комментарий