mk_89
mk_89

Reputation: 2742

.htaccess file not working

I've literally being trying for a few days to get my .htaccess file to work

the .htaccess file is quiet simple, it contains the following

Options -Indexes

ErrorDocument 404 http://mydomain.com/search

However no matter what commands I paste into the the file I can not get anything to happen.

the file is under /var/www/ on my Ubuntu server, and I have tried placing into in the root /, nothing works

Does anyone have any suggestions?

Upvotes: 0

Views: 748

Answers (1)

Jon Lin
Jon Lin

Reputation: 143846

Make sure that you have either AllowOverride All or at the very least AllowOverride FileInfo. Htaccess files' contents are ignored if you don't have them.

Upvotes: 1

Related Questions