FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


help editing 404.shtml





shkhanal
I wish to redirect to home page for the Not Found error.

I am confused and could not figure out what to do since this 404.shtml file is on .shtml format.

Could you help me out please!
rvec
if you want to use shtml: http://www.w3.org/Jigsaw/Doc/User/SSI.html
and if you just want to use html you can just put that in the file, normal html can be put in an shtml file just like it can be put in a php file.
shkhanal
I am hosting my site here in Frihost itself and the Cpanel lets us to edit the 404.shtml file. I wish the solution in this context.

What should I type in that edit window so that my Not Found error Page will redirect user to the home page of my site.
loyal
This will help: www.webkeydesign.com/13/404-custom-error-page/

Peace.
Loathing in Fear
To redirect people to your main instead of the 404 error page, replace the code in the 404.shtml file by something like this:

Code:

<html>
<head>
<title>Your Page Title</title>
<meta http-equiv="REFRESH" content="0;url=http://www.YOURDOMAIN.com">
</head>
<body>
OPTIONAL TEXT HERE
</body>
</html>


Change YOURDOMAIN to your own URL. The 0 after content tells the browser how long it should wait before redirecting, so if you want your user to still see the error message, add it instead of OPTIONAL TEXT HERE & change the 0 to a higher number (like 5).

I hope this helped. Wink
Blaster
Hmm.... what control panel are we using these days? Cpanel allows it to be done using the custom error pages.
shkhanal
Thank you everybody for your concern and your help to me. That article is really nice to understand about 404 error page. But here my problem is still not solved.

Well, I edited the 404.shtml page on Cpanel. But the error page is same as it used to display before updating.

I guess, its because of Joomla I'm using for my site. Is there somewhere else I need to modify to change this Not Found Error Page? I suspect modification on Joomla is needed, but I don't see any place there to modify.
Blaster
I would look in joomla's AP and see if there is anything in there about it.
Related topics
Custom 404's
Problems With Index Page
Signature and Banners for All
Some basic ftp info needed!! Frontpage help
how can i have 2 sets of error pages
CUSTOM ERROR PAGES
CGI FormMail Script Part II
How to set up a wiki
How to set Custom 404 page in Directadmin
.CO.CC
help editing on template
Invalid subdomain redirect to index.
Newbie with some questions
404 Not Found error when file viewed without login
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Frihost Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.