![]() |
|
|
|
#1 |
|
Is there a way to change what a person sees on my site when they type in,
or get a bad url? I see this: The page cannot be found On other sites I see different messages, I would like to customise mine. Thanks in advance, Lloyd Lloyd |
|
|
|
|
#2 |
|
Posts: n/a
|
On Fri, 24 Dec 2004 22:27:54 GMT, Lloyd <> wrote:
> Is there a way to change what a person sees on my site when they type > in, > or get a bad url? > I see this: > The page cannot be found > On other sites I see different messages, I would like to customise mine. This assumes you are on an Apache or similar server. Create an error page, save it as say "error.html". Then in a blank document add this line: ErrorDocument 404 http://www.example.com/error.html replacing your domain and path to the error document for the example path above. Save this file to your root directory with the name ".htaccess" - dot and all. |
|
|
|
#3 |
|
Posts: n/a
|
> On Fri, 24 Dec 2004 22:27:54 GMT, Lloyd <> wrote:
> >> Is there a way to change what a person sees on my site when they type >> in, >> or get a bad url? >> I see this: >> The page cannot be found >> On other sites I see different messages, I would like to customise mine. > > This assumes you are on an Apache or similar server. > > Create an error page, save it as say "error.html". > > Then in a blank document add this line: > > ErrorDocument 404 http://www.example.com/error.html > > replacing your domain and path to the error document for the example path > above. > > Save this file to your root directory with the name ".htaccess" - dot and > all. Thak you! I'll give it a shot Merry Christmas...... |
|
|
|
#4 |
|
Posts: n/a
|
> Create an error page, save it as say "error.html".
> > Then in a blank document add this line: > > ErrorDocument 404 http://www.example.com/error.html > > replacing your domain and path to the error document for the example path > above. > > Save this file to your root directory with the name ".htaccess" - dot and > all. it's an Apache server, I followed all instructions: it would not let me make a file called .htaccess on my win xp so after I uploaded it using cuteftp, I renamed it and it disappeared! When I type a bad url in, it just does nothing, (xp flag keeps waving) How to I find my .htacess if I need to edit it? Thanks Lloyd |
|
|
|
#5 |
|
Posts: n/a
|
On Fri, 24 Dec 2004 23:26:37 GMT, Lloyd <> wrote:
> it would not let me make a file called .htaccess on my win xp so after I > uploaded it using cuteftp, I renamed it and it disappeared! XP probably does not recognize it as real, it's pretty stupid. > When I type a > bad url in, it just does nothing, (xp flag keeps waving) > How to I find my .htacess if I need to edit it? You can only access it with FTP, really. I use Crimson Editor <http://www.crimsoneditor.com/> to do most uploading and editing. If your FTP program isn't working try that. It's a free download. When you FTP in you should see all the files in your main directory, ..htaccess should be there. If not, you should be able to create it with CE. |
|
|
|
#6 |
|
Posts: n/a
|
I got it working, I was calling error.html and had error.htm (missing 'l'),
I still can't find the .htaccess file, does it become hidden on the server directory? Thanks |
|
|
|
#7 |
|
Posts: n/a
|
Lloyd wrote:
> I still can't find the .htaccess file, does it become hidden on the server > directory? Yes, the "." in the filename is a Unix convention for specifying that a file should be hidden. You should be able to find a setting somewhere in your FTP client that allows you to see hidden files though. -- Dylan Parry http://webpageworkshop.co.uk -- FREE Web tutorials and references |
|
|
|
#8 |
|
Posts: n/a
|
Lloyd wrote:
> Is there a way to change what a person sees on my site when they type in, > or get a bad url? > I see this: > The page cannot be found > On other sites I see different messages, I would like to customise mine. > Thanks in advance, > Lloyd Ask your host how to proceed with customizable 404 pages before doing it on your own. |
|
|
|
#9 |
|
Posts: n/a
|
> Ask your host how to proceed with customizable 404 pages before doing it
> on > your own. > I have it all fixed thanx to other posters, merry Christmas! |
|
|
|
#10 |
|
Posts: n/a
|
"Lloyd" <> wrote:
> Is there a way to change what a person sees on my site when they > type in, > or get a bad url? Probably. Others have already discussed the technicalities. > On other sites I see different messages, I would like to customise > mine. While that's understandable, and recommended by useability experts, it is _very_ easy to go wrong and create an error page that is _worse_ than the default one, at least for a large number of potential users. A common error (when the pages are not in English) is to include the error message in the language of the pages _only_. So make sure you are making an improvement, so that the error page is more understandable and more informative. For some notes see http://www.cs.tut.fi/~jkorpela/www/404.html -- Yucca, http://www.cs.tut.fi/~jkorpela/ Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html |
|