[Pro] Custom 404 error page

I want to make a custom 404 error page since we are upgrading some products and new pages are available. HAs anyone done that in Freeway? Or does it have to be hard coded?

Thank you,

Mike


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

Yes - fairly easy

With my host, Have-Host, I can create a page 404.shtml at the same level as the index page of my site.

It gets uploaded like any other

Try http://www.deltadesign.co/pants - mine isn’t particularly fancy

David


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

Thank you,

No problem making the page - but when the 404 error appears, how does the server get to recognize the 404 error? In other words, is it just the way you name the page or where I place it on the server? I’m a little dense on this…

Thanks again

Mike


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

To have your 404 error page displayed you have to tell the server what to do when it recognises there is an error.
This is how i do it, and perhaps there are others that can tell you differently.
You will need an ftp client or a file manager on your hosting account.
Log in to your hosting and if you don’t already have a .htaccess file at the route of your directory, add one. To do this simply create a plain text file called htaccess.txt - upload this to the route of your web account [ normally the first folder that is open ] and rename it to .htaccess If you add the ‘dot’ before you upload. it will become invisible, although ftp apps like transmit will still see it where ever you saved it, but it’s best not to rename until it is on the server.
Open the .htaccess file and add the code:
ErrorDocument 404 /myerrorpage.html or whatever you have named the page you created in freeway, and save it.
Whenever a missing or incorrectly typed page is requested, your error page will be displayed.
I have in the past needed to add the full url of the page ie: ErrorDocument 404 /http://www.mysite.com/myerrorpage.html but usually the first method is fine.
Hope that helps.

Alan…


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

As I said in my first post:

“create a page 404.shtml at the same level as the index page”

Your mileage may vary on different server setups but mine is pretty standard unix/linux hosting.

D


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

But your server should automatically display a 404 error if a file cannot be found.

Try it on your own server to see - just type in a web address of a non-existant page ie www.youreserver.com/mynonexistantpage.html and see what you get.

If you get the 404 then you do not need to alter/add an htaccess file.

D


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