---
title: htaccess
date: 2012-01-05
keywords: [apache, web, htaccess]
---
This drove me nuts for about an hour, until I found [this stackoverflow
post][1].
getting htaccess to work
========================
Having problems getting `.htaccess` to work? I had the same issue and
hopefully this will help you.
`vi /etc/apache2/sites-available/example` or whatever your
sites-available file is called.
```
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
```
Look for the "`AllowOverride`" line and change it from *None* to *All*:
```
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all
```
and then restarting apache with
```
sudo service apache2 restart
```
Now apache should read your `.htaccess` file in the *example* directory.
[1]: http://stackoverflow.com/questions/2837170/the-htaccess-file-wont-work-on-my-apache-server