PDA

View Full Version : How to setup 404 pages within Interworx/siteworx?


euser
10-31-2004, 12:36 PM
How do you setup 404 pages within Interworx and siteworx?

eDixon
11-01-2004, 12:10 PM
The easiest way is to add a .htaccess file in your root directory that says where you want them to go. Otherwise you need to edit the entries in your conf.d

Here is a sample I use:

ErrorDocument 400 http://www.mysite.com/error/400.html
ErrorDocument 403 http://www.mysite.com/error/403.html
ErrorDocument 404 http://www.mysite.com/error/404.html
ErrorDocument 500 http://www.mysite.com/error/500.html

#400 Bad syntax
#403 Forbidden
#404 Not Found - Most common
#500 Internal Error

you cant make this filename in windows, I will name it htaccess.txt, then upload, and rename to .htaccess

sonicgroup
11-01-2004, 01:12 PM
Actually, you can in Windows. Simply surround the filename with quotes and save as type all files and it works fine - i.e. ".htaccess".

timryberg
11-02-2004, 09:38 PM
Actually, you can in Windows. Simply surround the filename with quotes and save as type all files and it works fine - i.e. ".htaccess".

That's a prety slick trick -- thanks :-)

eDixon
11-03-2004, 01:42 PM
sonicgroup - that depends on the version of windows. 9x (ME, XP home) , it dosnt work on, NT(2k, XP pro) it does IIRC.

sonicgroup
11-03-2004, 07:16 PM
I can't verify that as all my comps are running 2000/XP Pro. Doesn't make sense, but since when has anything Microsoft has ever done made sense? ;)

eDixon
11-05-2004, 11:41 AM
keeping it .txt also help the problem of ftp clients not switching the the right mode (ascii / bin). (You would be suprised to see how many people dont know about this :()