All Products 
Username / Customer#
Password
Log In
 Hi,  |  Log Out
  • Site Search
  • Domain Search
  • WHOIS Domain Check
24/7 Support: (480) 505-8877
Hablamos Español
9 AM to 9 PM IST
7 days a week
Go Daddy Support

Search help articles, forums, and discussion groups

Need 301 htaccess code to redirect 404 page to home page

Viewing post 1 to 5 (5 total posts)
Profile picture of Vikasbook

vikasbook said 1 year ago:

Hi,

Can anyone help me with the htaccess code to redirect 404 page to home page. I don’t want to go with meta refresh tag and looking for htaccess code to redirect 404 error page to home page

Profile picture of Nate D

Nate D said 1 year ago:

@vikasbook – You can simply set your home page as the destination for 404 errors:

http://support.godaddy.com/help/1/setting-up-a-custom-404-page

http://support.godaddy.com/help/3352/setting-a-404-page-on-subdomains-and-aliased-domains

Profile picture of Sherrod

GoDaddy Expert sherrod said 1 year ago:

@vikasbook,

Looks like @NateD has provided some great advice. If you are looking for any more information please let us know.

Sherrod

Profile picture of Vikasbook

vikasbook said 1 year ago:

I am looking to redirect all 404 error pages to home page. I don’t want to customize 404 error page and the way should be 301 htaccess code

Profile picture of Nate D

Nate D said 1 year ago:

@vikasbook – You do not want to do a blind ‘catch all’ 301 redirect. This would give your website an infinite number of pages, all containing the exact same content as your homepage. Just in case you did not know Google does not like that very much.

You want it to give the 404 code when appropriate, but like I pointed out you can set this to any page you want (even your homepage). Then use 301 redirects for specific URLs that do have a counterpart on your site (like oldpage.html redirects to newpage.html).

Add a reply:

You will auto join this group when you reply to this topic.

When posting about a technical issue, please be sure to include as many details as possible, such as your domain name, related URLs and other pertinent information. This consideration will allow us to better understand the situation and quickly assist you.