FRIHOSTFORUMSSEARCHFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

.htaccess problem

 


alalex
i wanted to create custom error pages, so i created a file called .htaccess and wrote these lines in it:
Code:
ErrorDocument 401 /nofile.htm
ErrorDocument 403 /forbidden.htm
ErrorDocument 404 /nofile.htm

And then i created the files nofile.htm and forbidden.htm
All of these files have been placed in the root directory, but it doesn´t work...
TomS
I guess it's like with the file where the users and passwords stand in for a login via .htaccess. You have to enter the absolute path. (I don't know it unfortunately).

If they are in the html-directory write this.

Code:
ErrorDocument 401 http://yourdomain.frih.net/nofile.htm
ErrorDocument 403 http://yourdomain.frih.net/forbidden.htm
ErrorDocument 404 http://yourdomain.frih.net/nofile.htm
alalex
ok, ill try that.
cavey
It should work with local addresses. Which site are you trying to use this on? I tried both http://www.webot.frih.net/urban/ and http://www.webot.frih.net/ but could not find any nofile.htm or forbidden.htm
alalex
no, im trying to do it in another host, for a web design client. i think the problem is with the host. i think the dont support .htaccess changes...
the web is this one: http://www.grupocerpa.com and the files are in a subdirectory called errorDocs. i also directed the .htaccess to that directory, so the problem has to be in the host...
cavey
So your .htaccess should look like this, since the errorfiles are lying in a folder called "errorDocs"

Code:
ErrorDocument 401 /errorDocs/nofile.htm
ErrorDocument 403 /errorDocs/forbidden.htm
ErrorDocument 404 /errorDocs/nofile.htm
Related topics

htaccess problem again
secure subdomain .htaccess problem.
40Frih for Help with .htaccess problem
Wordpress htaccess problem
.htaccess Problem - PLEASE help - Reward Offered

.htaccess problem
.htaccess Problem With Register_Globals
htaccess Problem
.htaccess problem in wordpress
Solve this HTML mystery for 20Frih$

Image linking within my site seems to not be working
Philippines Freelance Web Link Exchange
How to solve this problem? Thanks
CANT UPLOAD .htaccess, .htpasswd, .header, .footer
Problem with google discription for [url]http://www.poxyprox
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.