custom 404 - help needed

hi, i would like to customise the generic 404 error when a page cannot be found. I have created a page called /404.html in freeway and used google’s webmaster tools to add code as html markup.

I have checked with ISP and they said need to write somce ASP script and name it 404.asp and they will do redirect from here to the 404.html file. Anyone else done something like this???


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Create a text file and type this line :

ErrorDocument404pathto/404.html

(type actual spaces where is mentioned)

  • Save the file as a plain textfile, name it htaccess
  • Upload the file htaccess … and once uploaded, change the name: type a dot before the name : .htaccess
  • Done

freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

ErrorDocument 404 pathto/404.html


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

This htaccess file will work on an Apache server. IIS (the Microsoft
Web Server that usually runs ASP files) tries very hard to emulate
Apache, but it’s not always the same, especially not at the level
where redirects happen. If the hosting people say that they need to
write an ASP script to access the custom 404, it’s probably all but
certain that that’s what will be needed. By this I mean, of course,
try it, but stand ready to have it fail, and the ASP business succeed.

Walter

On Oct 20, 2008, at 9:15 AM, Richard van Heukelum wrote:

ErrorDocument 404 pathto/404.html


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

just done it, but still not working I remove the .txt so it now is “.htaccess” when I renamed in LEECH FTP the file dissapeared???


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

This is to be expected. Have a look in your FTP application’s
preferences or menus for an option to “Show Hidden Files” or similar.
All files that begin with a dot are hidden by default in FTP file
lists. These files are commonly used for preferences, history files,
etc, and are not meant for mere mortals to view. If the (properly
named) .htaccess file has either no effect, or throws a 500-series
Server Error, then delete it altogether and make sure to tell your
server administrator about the event. (They’ll know already, if they
tail the logs, but it’s always nice to be out front about anything
you do that causes the server to become completely unresponsive.)

Walter

On Oct 20, 2008, at 9:47 AM, Potsy wrote:

just done it, but still not working I remove the .txt so it now is
“.htaccess” when I renamed in LEECH FTP the file dissapeared???


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

done, but still not working - any other ideas


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

As I said before, you may need your server people to write that
script. If the .htaccess file had no effect, then that’s a clear sign
that they either have not given you the authority to make this sort
of change, or that the server is not configured to emulate Apache at
that level. Either way, they will have to do it and you will not be
able to make the change from your end.

Walter

PS: Find a new hosting provider. Unless you REALLY need to be able to
run Windows executables on the server for some mission-critical
reason, IIS (Microsoft) hosting should be avoided at all costs. It is
really insecure and requires constant diaper-changing to run
predictably. Almost any commodity hosting provider will offer you
Apache on Linux or another *nix for the very low two figures per
year. It’s cheap, it’s everywhere, and it’s the grown-up-responsible
thing to offer your customers. It’s also very hard to break from the
outside, so you won’t get those phone calls late at night.

On Oct 20, 2008, at 10:04 AM, Potsy wrote:

done, but still not working - any other ideas


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

walter - thanks nildram are looking at now :frowning:


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options