Why is my .htaccess not working in VPS?
Monday, January 25, 2010 2:04If you have a VPS or Linux server running Apache the good old fashioned way without fancy control panels, you’ll quickly have to learn some Apache tweaks.
One of the main issues we commonly run into is a non-working .htaccess file. Apache doesn’t come with .htaccess support automatically turned on. You’ll have to turn it on in order for .htaccess files to have an effect. Here’s what you do:
There are two ways,
- Edit your httpd.conf manually using a text editor like vim, nano, vi, joe whatever you like.
- Edit your httpd.conf through Webmin
Since the Webmin version is more graphical, we’ll show you how to do it through Webmin. If you’re using a text editor, just skip to the portion with the AllowOveride command.
- Login to your Webmin
- Servers>Apache Webserver
- Go to the “Global Configuration” tab
- Click on “Edit Config Files”

- Search for AllowOverride and .htaccess and remove the # sign in front or type “AllowOverride All”. or Search for AllowOverride None and replace with AllowOverride All
This should fix it permanently and allow your .htaccess files to override pretty much and directive needed.

You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
















joomla design says:
January 26th, 2010 at 6:38 pm
Thanks for that quick fix tip for .htaccess. I have looked everywhere for some info on properly setting up Apache.