iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
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

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-01-2005, 03:09 AM
WebProWorld Member
 
Join Date: May 2005
Posts: 42
Miki RepRank 0
Default how to make use of .htaccess

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
Reply With Quote
  #2 (permalink)  
Old 06-01-2005, 12:56 PM
WebProWorld Member
 
Join Date: Mar 2004
Posts: 72
synergytheory RepRank 0
Default

Quote:
Originally Posted by seosmartz
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
Instead of the string of text, use an address to a html file, i.e:

ErrorDocument 404 http://www.example.com/404error.html
Reply With Quote
  #3 (permalink)  
Old 06-01-2005, 01:50 PM
Burf.com's Avatar
WebProWorld Veteran
 
Join Date: Dec 2003
Location: UK, Hampshire
Posts: 541
Burf.com RepRank 1
Default

Did this work as this is something i need to do
Reply With Quote
  #4 (permalink)  
Old 06-01-2005, 03:53 PM
WebProWorld 1,000+ Club
 
Join Date: May 2004
Location: Dallas, Texas USA
Posts: 1,492
bhartzer RepRank 1
Default

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
Reply With Quote
  #5 (permalink)  
Old 06-03-2005, 03:37 AM
WebProWorld Member
 
Join Date: May 2005
Posts: 42
Miki RepRank 0
Default

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
Reply With Quote
  #6 (permalink)  
Old 06-09-2005, 06:40 AM
WebProWorld Member
 
Join Date: May 2005
Posts: 42
Miki RepRank 0
Default

hey guys... i am able to implement customized 404 pages with the help of httpd.conf.... but not able to do it with .htaccess... Could amnyone please guide me
Reply With Quote
  #7 (permalink)  
Old 06-09-2005, 07:27 PM
WebProWorld New Member
 
Join Date: Jun 2005
Location: Colombia
Posts: 4
Apolo RepRank 0
Default

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! :)
Reply With Quote
  #8 (permalink)  
Old 06-09-2005, 09:46 PM
WebProWorld Pro
 
Join Date: Feb 2004
Location: Stupid question. At my PC.
Posts: 134
TechEvangelist RepRank 1
Default

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
Reply With Quote
  #9 (permalink)  
Old 06-11-2005, 10:53 AM
WebProWorld New Member
 
Join Date: Jun 2005
Location: Colombia
Posts: 4
Apolo RepRank 0
Default

Quote:
Originally Posted by TechEvangelist
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.
He mentioned "httpd.conf" previously, so I guess he's indeed using Apache. ;)
Reply With Quote
Reply

  WebProWorld > Search Engines > Search Engine Optimization Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 07:29 PM.



Search Engine Optimization by vBSEO 3.3.0