post your comment   print   send to a friend
Rate:  75% | Views: 308
Question categories:  Do It Yourself

Instead of a having a designated Custom Error Page, can visitors automatically be forwarded to the home page instead?

There is an easy way to accomplish this task by use of a Meta Refresh Tag.

First, set up Custom Error Documents on your site. If you are unfamiliar with how to do this, please refer to the following Knowledge Base document for assistance:

Can I use an .htaccess file to customize my own error documents?

Next, add the following lines of HTML to the relative error document within the <head> tag. See the example below:

<html>

<head>

<title>The page you requested could not be found.</title>

<meta http-equiv="refresh" content="1; URL=http://www.your-homepage-here.com/">

</head>

<body>

The page you requested could not be found, please wait while you are redirected to the homepage…

</body>

</html>

In this example, you need to replace the red text with the URL of your own home page. The value “1” next to the variable content=”1 indicates the amount of time (in seconds) the browser should wait until it refreshes to the URL indicated. In our example, the browser waits 1 second. If you would like an automatic refresh, change this value to “0” (zero.)

Customer Feedback
Rate:  75% | Views: 308 | Please Rate:  
 
If you have other comments or ideas for future technical tips, please type them here:

Email: (optional)

Comments: (optional)

 Custom Web Design | Webpage Design    Back to serch results
Browse the Base
Knowledge Base
Web Design
  Do It Yourself
    Gallery2
    HTML Validation
    Guest Book
    Live Chat
    Java
    ASP
    Form Mail
    Forums
    CGI scripts
    JavaScript
    Blogs
    Perl scripts
    Image Manipulation
    Thumbnail Generator
    Counter
    Customer Survey
    Search Site Engine
    Linpha Gallery
    MediaWiki
    Sitemap Builder
    TikiWiki
    Online Calendar
    Coppermine Gallery
    Joomla
    Wordpress
Messages
Private Area
 
Ask
in Private
   
Personal
Folder
 
Related Questions
 
1. What databases are and the varieties of database designs
 
2. How do I add a picture to my Web site?
 
3. Where do I get additional Fonts from for my Web design?
 
4. What are flat file and relational databases?
 
5. What is superstitial?
 
Home Browse Search Ask in Private Personal Folder   Help
powered by web hosting 
  Logged as: Guest