Click to See Complete Forum and Search --> : [RESOLVED] .htaccess


Wiz Creations
08-11-2006, 12:43 AM
I have a .htaccess page with the following:ErrorDocument 400 /http://www.wizcreations.com/error/400.html
ErrorDocument 401 /http://www.wizcreations.com/error/401.html
ErrorDocument 403 /http://www.wizcreations.com/error/403.html
ErrorDocument 404 /http://www.wizcreations.com/error/404.html
ErrorDocument 408 /http://www.wizcreations.com/error/408.html
ErrorDocument 500 /http://www.wizcreations.com/error/500.html
ErrorDocument 503 /http://www.wizcreations.com/error/503.html
ErrorDocument 505 /http://www.wizcreations.com/error/505.html
I know that my hosting plan (http://ipower.com/webhosting_proplan.html) supports custom error pages because they have a tool set up that creates the htaccess file for you. The reason I'm making my own is because they only do 5 of the possible error pages, and as you see above, I've made 8.

I opened notebook and pasted the above code. I then did File > Save As and put File name as .htaccess, Save as type All Files, and Encoding ANSI. I then uploaded the file into the root folder of my website.

bmass
08-11-2006, 12:48 AM
May I ask what your issue is? You have made it sound as though everything is okay and do not need support...

Wiz Creations
08-11-2006, 12:57 AM
Oh sorry. My problem is that when I upload the .htaccess file, my website tries to run it but fails.

Try going to www.wizcreations.com/asldfhj

LeeU
08-11-2006, 09:53 AM
Do you upload it in ASCii mode?

Wiz Creations
08-11-2006, 11:21 AM
I have no idea.

ray326
08-11-2006, 08:32 PM
Connect with your FTP, enter the command 'ascii' then upload the file. Also make sure your directives have correct syntax as your examples don't.

http://httpd.apache.org/docs/2.0/mod/core.html#errordocument

Wiz Creations
08-11-2006, 08:38 PM
It works now. I didn't realize I had the backslash before the http:. That was the only error. Thanks for your responses.