Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 15th Sep 2011, 06:16 PM   #1
HyperActive Warrior
War Room Member
 
Join Date: 2006
Location: New York
Posts: 338
Thanks: 1
Thanked 33 Times in 26 Posts
Default
how to create a 404 redirect page to homepage
Share on: 
fb share twitter share gplus share more share

Hi warriors,

In my GWT, I have a lot of 404 errors,

how do I create a redirect to my homepage.

thanks
Jeremy123 is offline  
Unread 17th Sep 2011, 06:26 PM   #2
Active Warrior
 
PeachCoding's Avatar
 
Join Date: 2011
Location: Atlanta, GA
Posts: 96
Thanks: 0
Thanked 15 Times in 15 Posts
Default
Re: how to create a 404 redirect page to homepage
Share on: 
fb share twitter share gplus share more share

Pretty simple. Create an .htaccess file on the /public_html/ (or equivalent) folder with the code below:

Code:
ErrorDocument    404    /
That will redirect all 404 loads straight to your homepage. Hope that helps.

Services offered: PSD to Wordpress, Joomla, Drupal Templates or Full Site, Custom PHP or C# Programming, Fix problems on any software, and more.

You will get 25% OFF all services by mentioning the Warrior Forum. PM me here or email me to ivanphp404@gmail.com if interested and/or if you have questions.
PeachCoding is offline  
Unread 17th Sep 2011, 08:17 PM   #3
Active Warrior
War Room Member
 
Unomateo's Avatar
 
Join Date: 2011
Location: Oakland, CA
Posts: 69
Thanks: 1
Thanked 11 Times in 11 Posts
Blog Entries: 1
Default
Re: how to create a 404 redirect page to homepage
Share on: 
fb share twitter share gplus share more share

Your readers might get confused if they are looking for something but keep ending up on the homepage...

A good solution to to provide a 404 page what displays similar posts.

"Sorry we couldn't find xxx... Here are similar posts"

Unomateo is offline  
Unread 17th Sep 2011, 08:21 PM   #4
HyperActive Warrior
War Room Member
 
Join Date: 2006
Location: New York
Posts: 338
Thanks: 1
Thanked 33 Times in 26 Posts
Default
Re: how to create a 404 redirect page to homepage
Share on: 
fb share twitter share gplus share more share

thanks for your replies,

I discovered that within my hosting account, I can create custom 404 pages,
just go to your cpanel and then to error pages and follow the directions.

Jeremy123 is offline  
Unread 18th Sep 2011, 11:16 PM   #5
Warrior Member
 
Join Date: 2011
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: how to create a 404 redirect page to homepage
Share on: 
fb share twitter share gplus share more share

thanks but can i create costume 404 error page??

shareclock is offline  
Unread 20th Sep 2011, 04:47 PM   #6
Head Nerd In Charge
War Room Member
 
Kacy Carlsen's Avatar
 
Join Date: 2011
Location: So Cal
Posts: 19
Thanks: 0
Thanked 4 Times in 4 Posts
Default
Re: how to create a 404 redirect page to homepage
Share on: 
fb share twitter share gplus share more share

Yes, you can have your error pages go to any page that you choose. So create your custom page and have your errors direct to that page

Originally Posted by shareclock View Post

thanks but can i create costume 404 error page??
Kacy Carlsen is offline  
Unread 9th May 2013, 12:01 PM   #7
Active Warrior
War Room Member
 
CRGreen's Avatar
 
Join Date: 2008
Posts: 48
Thanks: 0
Thanked 12 Times in 11 Posts
Default
Re: how to create a 404 redirect page to homepage
Share on: 
fb share twitter share gplus share more share

Has anyone experimented with setting up 404 pages that recommend other relevant products or information through an affiliate link?

Connie Ragen Green
Huge Profits Tiny List
Make Huge Profits With A Small List
CRGreen is offline  
Unread 17th May 2013, 06:52 PM   #8
Fluent SEO
War Room Member
 
Join Date: 2013
Posts: 32
Thanks: 2
Thanked 3 Times in 2 Posts
Default
Re: how to create a 404 redirect page to homepage
Share on: 
fb share twitter share gplus share more share

If you are using a Wordpress site and don't want to mess around with .htaccess, you can also just install a simple redirect plugin. The one I use is by Jordi Plana and works perfectly. You can find it at Jordi PlanaWordpress Plugin: 404 Simple Redirect | Jordi Plana

Essentially, you just have to activate the plugin and then set the url of the homepage and you are good to go.
bryguy is offline  
Unread 19th May 2013, 01:53 PM   #9
Warrior Member
War Room Member
 
Join Date: 2012
Posts: 3
Thanks: 0
Thanked 1 Time in 1 Post
Default
Re: how to create a 404 redirect page to homepage
Share on: 
fb share twitter share gplus share more share

In your 404 doc you can add
<meta http-equiv="Refresh" content="5; URL=/"> in the <head> section and that will redirect them to your homepage after 5 seconds
Hatescheese is offline  
Closed Thread


Bookmarks

Tags
404, create, homepage, page, redirect


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




All times are GMT -6. The time now is 04:07 PM.