Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Closed Thread
 
LinkBack Thread Tools Display Modes
Share |
  #1 (permalink)  
Old 07-30-2005, 08:42 AM
No Longer Here
Latest Blog:
None

 
Join Date: 09-27-03
Location: State College, PA
Posts: 4,273
iTrader: 0 / 0%
404 Redirect to Home page

How do I make it so instead of a 404, the home page comes up?
 
  #2 (permalink)  
Old 07-30-2005, 09:11 AM
DaveyBoy's Avatar
Contributing Member
Latest Blog:
None

 
Join Date: 10-13-03
Location: England.
Posts: 3,885
iTrader: 0 / 0%
I think if you make a file with this line at the top, and make ur 404's go to that file, it'll redirect to the home page. The number is the delay.

<meta http-equiv="Refresh" content="5; URL=www.domain.com">
 
  #3 (permalink)  
Old 07-30-2005, 02:13 PM
Contributing Member
Latest Blog:
None

 
Join Date: 07-30-05
Posts: 246
iTrader: 0 / 0%
I think this will work for you!!!


htaccess


"...ErrorDocument 404 /errors/notfound.html
This would cause any error code resulting in 404 to be forward to yoursite.com/errors/notfound.html"

ErrorDocument 404 /index.htm
 
  #4 (permalink)  
Old 07-30-2005, 03:08 PM
No Longer Here
Latest Blog:
None

 
Join Date: 09-27-03
Location: State College, PA
Posts: 4,273
iTrader: 0 / 0%
That's exactly what I was looking for. Thanks
 
  #5 (permalink)  
Old 10-07-2008, 03:23 PM
Junior Member
 
Join Date: 10-07-08
Posts: 1
iTrader: 0 / 0%
Quote:
Originally Posted by DaveyBoy View Post
I think if you make a file with this line at the top, and make ur 404's go to that file, it'll redirect to the home page. The number is the delay.

<meta http-equiv="Refresh" content="5; URL=www.domain.com">
ty, working great...
 
Go Back   Webmaster Forum > Web Development > Coding Forum

Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the best 404 error or redirect page? THE X FILES Web Usability 24 11-11-2011 02:52 PM
Page Redirect Code Red devil SEO Forum 3 10-30-2007 06:20 AM
What is the difference between a home page and an inside page link? joew SEO Forum 6 07-11-2006 03:11 PM
Redirect page DOS Coding Forum 6 08-07-2004 12:20 PM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 11:42 PM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2014 Escalate Media




Search Engine Optimization by vBSEO 3.6.0 RC 2 ©2011, Crawlability, Inc.