iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-18-2005, 03:26 AM
bobkom's Avatar
WebProWorld Pro
 
Join Date: May 2004
Location: indianworld
Posts: 151
bobkom RepRank 0
Default How to redirect page to the error page

Hi friends i have a doubt about the erroro page redirecting i have seen that when i typed a page which is not there suppose www.yahoo.com/sms it goes to the yahoo page and showing that the page you have requested is not found iam also want to dolike that by typing www.indianworld.in/somepage and if the address is not there it will go to some particular erro page that i have designed how to make this plz any one help me in this. Thank you.
__________________
Mission www.INdianworld.IN
www.venkyfans.in
Reply With Quote
  #2 (permalink)  
Old 08-18-2005, 07:25 PM
WebProWorld Pro
 
Join Date: Feb 2005
Location: United States
Posts: 113
wsmeyer RepRank 0
Default

Not sure if this is true for all server configurations but on my Apache server all I had to do was create a page 404.shtml in the root of the web.

William.
Reply With Quote
  #3 (permalink)  
Old 08-23-2005, 10:38 AM
WebProWorld Pro
 
Join Date: May 2004
Location: Austin, TX
Posts: 199
steve0 RepRank 0
Default

if you are running apache.. create a file called .htaccess (You can create it in /indiantalk)

In the file add the line:
ErrorDocument 404 /indiantalk/YourErrorPage.html

Where "YourErrorPage.html" is the name of your custom error page..

By putting it in /indiantalk you can match the style of your forums.. should you create other sections of the site.. You can have other error docs match those sections..
__________________
Hardcore Programming Solutions and Coffee Drinker
Reply With Quote
  #4 (permalink)  
Old 08-29-2005, 07:50 AM
bobkom's Avatar
WebProWorld Pro
 
Join Date: May 2004
Location: indianworld
Posts: 151
bobkom RepRank 0
Default thank you sir

Quote:
Originally Posted by steve0
if you are running apache.. create a file called .htaccess (You can create it in /indiantalk)

In the file add the line:
ErrorDocument 404 /indiantalk/YourErrorPage.html

Where "YourErrorPage.html" is the name of your custom error page..

By putting it in /indiantalk you can match the style of your forums.. should you create other sections of the site.. You can have other error docs match those sections..
First of all thanks for reply i have a problem that is iwant to put an index page before entering in to a forum and i think that the eeropage should be put in http_public directory as main or in the /indiantalk just this single doubt ?
__________________
Mission www.INdianworld.IN
www.venkyfans.in
Reply With Quote
  #5 (permalink)  
Old 08-29-2005, 09:04 AM
WebProWorld Pro
 
Join Date: May 2004
Location: Austin, TX
Posts: 199
steve0 RepRank 0
Default

by putting the error page in http_public, it will server as the error page for the entire site.
__________________
Hardcore Programming Solutions and Coffee Drinker
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion 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 11:37 AM.



Search Engine Optimization by vBSEO 3.3.0