redirect 404 pages to homepage
-
Hello,
I'm puting a new website on a existing domain. In order to not loose the links that point to the varios old url I would like to redirect them to homepage.
The old website was a mess as there was no seo and the pages didn't target any keywords. Thats why I would like to redirect all links to home.
What do you think is the best way to do this ?
I tried to ad this in the .htaccess but it's not working;
ErrorDocument 404 /index.php
Con you tell me how it exacly look?
Now the hole file is like this:
@package Joomla
@copyright Copyright (C) 2005 - 2012 Open Source Matters. All rights reserved.
@license GNU General Public License version 2 or later; see LICENSE.txt
READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!
The line just below this section: 'Options +FollowSymLinks' may cause problems
with some server configurations. It is required for use of mod_rewrite, but may already
be set by your server administrator in a way that dissallows changing it in
your .htaccess file. If using it causes your server to error out, comment it out (add # to
beginning of line), reload your site in your browser and test your sef url's. If they work,
it has been set by your server administrator and you do not need it set here.
Can be commented out if causes errors, see notes above.
Options +FollowSymLinks
Mod_rewrite in use.
RewriteEngine On
Begin - Rewrite rules to block out some common exploits.
If you experience problems on your site block out the operations listed below
This attempts to block the most common type of exploit
attempts
to Joomla!Block out any script trying to base64_encode data within the URL.
RewriteCond %{QUERY_STRING} base64_encode[^(]([^)]) [OR]
Block out any script that includes a
-
I'm very confused about where the 404 fits in - are these dead pages? To re-capture the link-juice, you'll need to 301-redirect (which it seems like you're also putting into play). In some cases, if the pages are gone or never existed, just let them be gone. If you take every single URL everyone could ever visit to the home-page, you may generate so many 301s that Google starts to get suspicious. We've seen some issues with this lately. In many cases, it's also just not a good user experience.
-
You should have RewriteEngine : RewriteEngine On and you should be able to access the .htaccess
have you tried using any of the tools in the URLs below
http://www.htaccessredirect.net/
&
This site talks about best practices of implementation you really just need to upload it to the FTP once you've made the changes using the tool in the URL above
http://www.ksl-consulting.co.uk/301-redirect-examples.html
Let me know if I can be of more help.
-
Ok, what Thomas is saying I will consider for some special pages but how do I technically do implement the redirects to home in .htaccess
ErrorDocument 404 /index.php is not working for now!
Is it correct?
RewriteEngine : RewriteEngine On
Do I have to ad something else to .htaccess ?
-
I think I have information that may help you Our little more I have comprised a hope will help you.
this tool will help you quite a bit in the described situation
http://www.htaccessredirect.net/
http://www.seomoz.org/blog/how-to-fix-crawl-errors-in-google-webmaster-tools
http://www.tamingthebeast.net/articles3/spiders-301-redirect.htm
404 page should include a link back to the home page or site map of your website so users can quickly get back to what they were searching for. A search box, if you have a site search, is also a good idea to add to a 404 page. Other then that, keep the page minimal, remove distractions and get the user off the 404 error page as quickly as they got on.
Keep in mind most users may not be so savvy when it comes to Internet jargon so simple explanations in English are key! Although, keeping it minimalist does not have to mean "boring". The steps to make a custom 404 page are simple and this site can explain in detail how to create one depending on your server.
301 Redirects
If you have old pages on your website that you want to remove or rename, use a 301 redirect to preserve search engine rankings and pass on backlinks and/or page rank. You can even redirect whole websites into new ones. It is easy to do and is very search engine friendly.
The term "301" stands for "moved permanently". It is created by using a .htaccess file. Follow this guide to learn how to implement many different types of 301 redirects. When pages are deleted instead of redirected with a 301, they turn into 404s (Not Found Pages).
I want to give credit where credit's due this information directly above was referenced from this website http://www.internetmarketingninjas.com/301.html
sincerely,
Thomas von Zickell
-
I would spread the redirects around as much as possible. If you can give link juice to not only your homepage but all pages your page rank and thus Google search rank will increase once the 301 redirects are indexed by Google. I agree strongly with what Sven Witteveen has said below and would be very inclined to agree with him.
I hope I was of some help to you.
Sincerely,
Thomas von Zickell
Blueprint Marketing
-
Thanks for advise but the home url is:
-
Hi Igrizio,
I'm not entirely sure but could it be that you're redirecting to //index.php instead of /index.php?
You can use this website to see the the statuscode and any redirect locations of a website.
Best of luck,
Sven Witteveen
Expand Online
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Why Would My Page Have a Higher PA and DA, Links & On-Page Grade & Still Not Rank?
The Search Term is "Alcohol Ink" and our client has a better page authority, domain authority, links to the page, and on-page grade than those in the SERP for spaces 5-10 and we're not even ranked in the top 51+ according to Moz's tracker. The only difference I can see is that our URL doesn't use the exact text like some of the 5-10 do. However, regardless of this, our on-page grade is significantly higher than the rest of them. The one thing I found was that there were two links to the page (that we never asked for) that had a spam score in the low 20's and another in the low 30's. Does anyone have any recommendations on how to maybe get around this? Certainly, a content campaign and linking campaign around this could also help but I'm kind of scratching my head. The client is reputable, with a solid domain age and well recognized in the space so it's not like it's a noob trying to get in out of nowhere.
Intermediate & Advanced SEO | | Omnisye0 -
Is it a problem to use a 301 redirect to a 404 error page, instead of serving directly a 404 page?
We are building URLs dynamically with apache rewrite.
Intermediate & Advanced SEO | | lcourse
When we detect that an URL is matching some valid patterns, we serve a script which then may detect that the combination of parameters in the URL does not exist. If this happens we produce a 301 redirect to another URL which serves a 404 error page, So my doubt is the following: Do I have to worry about not serving directly an 404, but redirecting (301) to a 404 page? Will this lead to the erroneous original URL staying longer in the google index than if I would serve directly a 404? Some context. It is a site with about 200.000 web pages and we have currently 90.000 404 errors reported in webmaster tools (even though only 600 detected last month).0 -
Putting "noindex" on a page that's in an iframe... what will that mean for the parent page?
If I've got a page that is being called in an iframe, on my homepage, and I don't want that called page to be indexed.... so I put a noindex tag on the called page (but not on the homepage) what might that mean for the homepage? Nothing? Will Google, Bing, Yahoo, or anyone else, potentially see that as a noindex tag on my homepage?
Intermediate & Advanced SEO | | Philip-DiPatrizio0 -
My home page is not found by the "Grade a Page" tool
My home page as well as several important pages are not found by the Grade a Page tool. With our full https address I got this http://screencast.com/t/s1gESMlGwpa With just the www address I got this http://screencast.com/t/BMRHy36Ih https://www.joomlashack.com
Intermediate & Advanced SEO | | etabush
https://www.joomlashack.com/joomla-templates We recently lost a lot of positions for our most important keyword: Joomla Templates Please help us figure this out. Whats screwy with our site?0 -
Canonical OR redirect
Hi, i've a site about sport which cover matches. for each match i've a page. last week there was a match between: T1 v T2 so a page was created: www.domain.com/match/T1vT2 - Page1 this week T2 host T1, so there's a new page www.domain.com/match/T2vT1 - Page2 each page has a unique content with Authorship, but the URL, Title, Description, H1 look very similar cause the only difference is T2 word before T1. though Page2 is available for a few days, on site links & sitemap, for the search query "T2 T1 match" Page1 appears on the SERP (high location). of course i want Page2 to be on SERP for the above query cause it's the relevant match. i even don't see Page2 anywhere on the SERP and i think it wasn't indexed. Questions: 1. do you think google see both pages as duplicated though the content is different? 2. is there a difference when you search for T1 vs T2 OR T2 vs T1 ? 3. should i redirect 301 Page1 to Page2? consider that all content for Page1 and the Authorship G+ will be lost. 4. should i make rel=canonical on Page1 to Page2? 5. should i let google sort it out? i know it's a long one, thanks for your patience. Thanks, Assaf
Intermediate & Advanced SEO | | stassaf0 -
My landing page changed in google's serp. I used to have a product page now I have a pdf?
I have been optimizing this page for a few weeks now and and have seen our page for up from 23rd to 11th on the serp's. I come to work today and not only have I dropped to 15 but I've also had my relevant product page replaced by this page . Not to mention the second page is a pdf! I am not sure what happened here but any advice on how I could fix this would be great. My site is www.mynaturalmarket.com and the keyword I'm working on is Zyflamend.
Intermediate & Advanced SEO | | KenyonManu3-SEOSEM0 -
Do my redirects on my homepage need to be 301?
Our domain name is something like www.I-am-cool.com but most people just type in iamcool.com After doing some research I found that those are 302 redirects and I think they should be 301. If I am correct do I need to redirect www.iamcool.com and iamcool.com or just one or the other?
Intermediate & Advanced SEO | | EcommerceSite0 -
Embed Same Video On Multiple Pages or 301 Redirect Into 1?
I have 3 pages that rank VERY well for related terms such as: -How to get widgets -How to become a widget -Getting widgets -etc. I am incorporating a video on the topic and rewriting much of the content on the site. I am wondering if it is wise to 301 redirect all 3 pages to 1 page that has the new/better video content or if I should leave the old content that is ranking well and embed the video on the top of each. The anal retentive side of me wants a nice new site structure and 1 powerful page. However, if the 3 pages are currently ranking (sometimes 2 pages in the same top 10 results), should I mess with what is working? Ultimately my goal is to increase the avg time on site as these 3 pages are top traffic pages for the site. However, they do not convert at all, as they are for a product we don't offer. Thoughts?
Intermediate & Advanced SEO | | TheDude0