Enable mod rewrite in Apache2 on Linux

7 months, 2 weeks ago 0
Posted in: Programování

First, run

sudo a2enmod rewrite

You have to restart Apache now:

sudo /etc/init.d/apache2 restart 

Then edit/etc/apache2/sites-available/default:

<Directory /var/www/> Options Indexes FollowSymLinks MultiViews
# changed from None to FileInfo
AllowOverride FileInfo
Order allow,deny allow from all
</Directory>

Napsat komentář

Vaše emailová adresa nebude zveřejněna. Vyžadované informace jsou označeny *

*

Můžete používat následující HTML značky a atributy: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>