user784298
user784298

Reputation: 117

.htaccess file doesn't seem to work

I'm running WAMP server 2.1 I decide to bite the bullet and play with the .htaccess file. I created one in the root dir c:\wamp\www and is thus:

ErrorDocument 400 http://localhost:8070/Test/error-page.php
ErrorDocument 403 http://localhost:8070/Test/error-page.php
ErrorDocument 404 http://localhost:8070/Test/error-page.php
ErrorDocument 405 http://localhost:8070/Test/error-page.php
ErrorDocument 408 http://localhost:8070/Test/error-page.php
ErrorDocument 500 http://localhost:8070/Test/error-page.php
ErrorDocument 502 http://localhost:8070/Test/error-page.php
ErrorDocument 504 http://localhost:8070/Test/error-page.php

I wanted to set a default error doc and use some php to redirect.

Because of a conflict of port 80, I use 8080, so

http://localhost/ becomes http://localhost:8080/

Navigating to

http://localhost:8080 

works, and navigating to a dummy directory produces the familiar 404 error and does not redirect to error-page.php

I have set

AllowOverride All

except for

<Directory "cgi-bin">
...
</Directory>

the .htaccess file was created in notepad and is an ansi file, and NO it is called .htaccess NOT .htaccess.txt or other variation.

I have set

AccessFileName .htaccess

Please help, why doesn't it work ?

Upvotes: 0

Views: 974

Answers (1)

user784298
user784298

Reputation: 117

fixed the problem, what was happening, httpd.conf was trying to load a non-existent module, and therefore, the conf file wasn't being loaded, I did look in the logs before, but didn't notice this. thanks for your help !!

Upvotes: 2

Related Questions