|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Search Engine Optimization Forum SEO is much easier with help from peers and experts! The WebProWorld SEO forum is for the discussion and exploration of various search engine optimization topics. Any non (engine) specific SEO or SEM topics should go here. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Guyz
I am not able to implement .htaccess. I made .htaccess file and mention in it: ErrorDocument 404 "Sorry Page is down" and keep this file at the root of the website but its not working ... Please help me out |
|
|||
|
Quote:
ErrorDocument 404 http://www.example.com/404error.html |
|
|||
|
Yes, you need to specify which file is supposed to be displayed when the server receives a 404 error.
You then edit/create your error file page and upload it to your website. Keep in mind that many web hosts now have control panels--and if there's a control panel for your site then the 404 error page might already be set up for you. Or, the control panel might have a way for you to add the page quickly without having to edit the .htaccess file.
__________________
Bill Hartzer's Blog |
|
|||
|
Is their any need to modify httpd.conf file to setup customized 404 error page. if yes then what i need to do ???
What exactly i need to implement customized 404 page through .htaccess.. 1. make .htaccess file 2. ErrorDocument 404 http://www.abc.com/404error.html 3. Place the .htaccess file at the root of the website Please guide me ..as i have already implemented steps from 1 to 3 but no idea about httpd.conf |
|
|||
|
I recommend you to try the following:
1. Create a folder "errors", where you'll store your customized error pages. 2. Create the following files in it: 500.html 400.html 401.html 403.html 404.html as a "blank" documents. 3. Then customize your 404.html file (page) with the content you want to be shown. 4. Create the .htaccess file this way: ErrorDocument 500 /errors/500.html ErrorDocument 400 /errors/400.html ErrorDocument 401 /errors/401.html ErrorDocument 403 /errors/403.html ErrorDocument 404 /errors/404.html and upload it to your DocumentRoot (web directory). Test it and enjoy it! :) |
|
|||
|
Someone needs to mention that the .htaccess file only works on Linux and Unix servers running Apache. If your site is on a Microsoft IIS server, .htaccess will not work.
Also, error pages need to be larger than 512 bytes or they will not work with Internet Explorer. If an error is generated and the error page is less than 512 bytes, IE will substitute its own page. Why? Who knows. It's probably another Microsoft bug that was never fixed.
__________________
Facts are meaningless. They can be used to prove anything. - Homer Simpson MySQL Cheatsheet :: Arizona SEO training |
|
|||
|
Quote:
|
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |