วันจันทร์ที่ 27 กรกฎาคม พ.ศ. 2552

Creating an error page 404 custom

Each user has the dreaded 404 page not found error message. The general is a terrible mistake not to see the site for more visitors to your site. You can display a custom error page, visa, said the visitor, which was false, and then proposed a number of other links to other sites on your site, as an example, the homepage, site map or A search later. If visitors want, then it could go in other parts of your site. It 'very easy for a 404-page (404 is the error number error returned, if a page or directory is not on your site). The easiest way, the inversion of visitors, a 404, or send it to your homepage or on your Web page Sitemap We do this with one line of code on web pages. Htaccess ErrorDocument 404 / sitemap.html This will redirect all the error messages on page 404 Site map. The path of the page you want to display must already be on your Web server as the web server will bind to an infinite loop. The path to the error page, and must be connected to the main path of the account (not sure of an / a before the name of a file or a directory that, in relation to the root directory). To an error page, you can create a page in your favorite editor, like MS Frontpage or Dreamweaver. The page can be anything you want, such as images, links, etc. Save the file as something easy to remember (as 404errors.html) Can you recommend a directory directly in the file / public_html / folder and the name "error" and error files here. This means that your hour. Htaccess would be the command line as follows: ErrorDocument 404 / error/404errors.html Well, if a 404 was on your site, your error page is displayed, and keep your visitors happy web. In the next article I will develop this idea and show how you will be notified via e-mail, there was a 404 error on your site. It tells what is causing the error and the wrong. You can try and implement all links on your site.

0 ความคิดเห็น:

by TemplatesForYou-TFY
SoSuechtig, Burajiru
Distributed by Free Blogger Templates