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 09-07-2009, 03:17 AM
subho's Avatar
WebProWorld Member
 
Join Date: Sep 2005
Location: India
Posts: 87
subho RepRank 0
Default SiteMap page will act as 404 error page conditionally

Hi All
My client wants his website's "sitemap" page will act as 404 error page conditionally.What he means to say is there will be a single page which is "sitemap.php", top of the page custom 404 message will be hidden. When required the page will be displayed as error page otherwise it will act as simple sitemap page with hidden 404 msg.

How to do it with php/javascript? Any suggestion or example would be appriciable.

Thanks in advance-
developersouvik
__________________
Developersouvik [Technology & creativity Spun together]
http://developersouvik.orgfree.com
Reply With Quote
  #2 (permalink)  
Old 09-08-2009, 05:10 PM
WebProWorld New Member
 
Join Date: Sep 2005
Location: Indianapolis, IN
Posts: 18
Jermooski RepRank 0
Default Re: SiteMap page will act as 404 error page conditionally

Just redirect the 404 error to the sitemap page using the web server. If it is apache... you can redirect in the httpd.conf file. If IIS, I think there is a dialog box that lets you enter the page, sitemap.html.

Either way, you need access to the web server. I have never tried a Javascript solution. You could capture the 404 response and redirect in javascript, that should work.
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
404 error page Tolis Search Engine Optimization Forum 2 04-12-2007 05:31 AM
Getting a error on this page ??? waveswebdesign Content Discussion Forum 1 04-09-2007 07:14 PM
How to redirect page to the error page bobkom Web Programming Discussion Forum 4 08-29-2005 09:04 AM
Error on page Bohak Graphics & Design Discussion Forum 11 05-17-2004 06:20 PM
Error On Page? splinter WebProWorld: Guidelines/Announcements/Suggestions 7 03-01-2004 05:48 PM


All times are GMT -4. The time now is 06:49 AM.



Search Engine Optimization by vBSEO 3.3.0