How to redirect whole site to home page without breaking wordpress
-
Hi all
I had a phpprobid site which was heavily indexed but got hacked.
I have deleted the old site and installed wordpress and a holding page.
I can't work out how to 301 redirect all the old indexed pages to the home page without the existing wordpress redirect.
Anyone care to help?
-
Actually, before you redirect ALL errors to the homepage, please do some reading on that tactic:
http://www.rimmkaufman.com/blog/seo-and-404-pages/01022013/
http://support.google.com/webmasters/bin/answer.py?hl=en&answer=93641
http://support.google.com/webmasters/bin/answer.py?hl=en&answer=2409439
http://googlewebmastercentral.blogspot.com.au/2011/05/do-404s-hurt-my-site.html
Google specifically says (page 13)
Avoid not having a 404 page at all.
Finally:
http://support.google.com/webmasters/bin/answer.py?hl=en&answer=83105
Use a 301 Redirect to permanently redirect all pages on your old site to your new site. This tells search engines and users that your site has permanently moved. We recommend that you move and redirect a section or directory first, and then test to make sure that your redirects are working correctly before moving all your content.
Don't do a single redirect directing all traffic from your old site to your new home page. This will avoid 404 errors, but it's not a good user experience. It's more work, but a page-to-page redirect will help preserve your site's ranking in Google while providing a consistent and transparent experience for your users. If there won't be a 1:1 match between pages on your old site and your new site (recommended), try to make sure that every page on your old site is at least redirected to a new page with similar content.
Google does not recommend this tactic and says "Avoid." That's enough for me. I don't know how to help you with the Mod Rewrite but I wouldn't 301 your 404.
-
Thanks Moosa
I hadn't considered that way of handling the issue.
SEO-wise is that a good tactic or is it best just to salvage something from the train wreck?
-
If there URLs are not available then they must be giving the status of 404 all you have to do is to add a command in the .htaccess that any page that as a status of 404 will redirect to home page so that way all the pages that are no more available will automatically take the user to the home page.
Hope this helps!
-
yeh - they weren't in directories - they were top level - so the old urls are like
xxxx.com/featured,option,auctions_show/
There's over 1000 of them so I was hoping to do a mod rewrite that would 301 them all to the home page without breaking the wordpress rewrite rules.
-
The new Wordpress installation will take all the homepage juice so you don't need to direct home to home.
For all the rest, do you have an old sitemap or directory? You could easily direct old pages to the same relevant new pages or even back to homepage if you need. If you just want the new site.com to take all site.com's old juice - that will happen as Google indexes the new Wordpress.
After that it's simple enough - just Redirect 301 /old-directory/ http://www.site.com in an htaccess file.
Am I missing something in the question?
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
-
Home page ranks for most keywords with no SEO
Hi Guys, The keyword I am trying to rank is on seperate page with its own Optimization in place. However the HOME page of website starts ranking for that keywords . The keyword is mentioned on Home page Just once in content description, that's all. What should be my ideal strategy. Deleting the Sub Page, will that improve the SEO of my home page and improve the Rank for that keyword ? Also I can see my Own YELP pages rank better than the actual website for few terms . Any way around this ? A Part from building links to page ?
Intermediate & Advanced SEO | | aus00071 -
External resources page (AKA a satellite site) - is it a good idea?
So the general view on satellite sites is that they're not worth it because of their low authority and the amount of link juice they provide. However, I have an idea that is slightly different to the standard satellite site model. A client's website is in a particular niche, but a lot of websites that I have identified for potential links are not interested because they are a private commercial company. Many are only interested in linking to charities or simple resource pages. I created a resource section on the website, but many are still unwilling to link to it as it is still part of a commercial website. The website is performing well and is banging on the door of page one for some really competitive keywords. A few more links would make a massive difference. One idea I have is to create a standalone resource website that links to our client's website. This would be easy to get links from sites that would flat out refuse to link to the main website. This would increase the authority of the resource and result in more link juice to the primary website. Now I know that the link juice from this website will not be as good as getting links directly to the primary website, but would it still be a good idea? Or would my time be better spent trying to get a handful of links directly to the client's website? Alternatively, I could set up a sub-domain to set up the resource, but I'm not sure that this would be as successful.
Intermediate & Advanced SEO | | maxweb0 -
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 -
Redirecting one site to another for link juice
I have two sites with same theme - buying cars. I am going remove one of the sites from being crawled permenantly (ie junkthecars.com) and point domian via 301, to another similar theme site (sellthecars.com). The purpose is to simply pass the SEO link juice from one site to the other as we retire junkthecars.com.... Is a forwarding of the domain OK and the best way for the search engines to increase the rank of sellthecars.com (we hate to wast the link work done on Junkthecars.com)? What dangers should I look for that could hurt sellthecars.com if we do the redirect at a simple TLD?
Intermediate & Advanced SEO | | bestone0 -
301 redirect subdomain to path and 301 for popular pages
We have very popular pages that have many backlinks. www.chezmaya.com/jeux/game33.htm have so many backlinks and it's very popular. Now If i'm moving this page to a new path like : http://www.chezmaya.com/jeux/component/mtree/Défouloir/Game33/details.html with a 301. Your SEOmoz toolbar is now giving a very low PA:1 and mR:0.00 for this new page. My question is after you crawl my site again would you change the values to what /jeux/game33.htm got before ? We used to have jeux.chezmaya.com and moved to www.chezmaya.com/jeux/
Intermediate & Advanced SEO | | SocialGeekMedia
Same here PA:1 and mR:0.00 for this page. Also Matt Cutts say that Google does transfer the juice from the old page to the new one. I already saw one url changed in a search for puzzle, it's at the same position it was before, but it say's 6 days ago beside. So I wonder if this is temporary and it will move with time? Thanks0 -
Site revamp for neglected site - modifying site structure, URLs and content - is there an optimal approach?
A site I'm involved with, www.organicguide.com, was at one stage (long ago) performing reasonably well in the search engines. It was ranking highly for several keywords. The site has been neglected for some considerable period of time. A new group of people are interested in revamping the site, updating content, removing some of the existing content, and generally refreshing the site entirely. In order to go forward with the site, significant changes need to be made. This will likely involve moving the entire site across to wordpress. The directory software (edirectory.com) currently being used has not been designed with SEO in mind and as a result numerous similar pages of directory listings (all with similar titles and descriptions) are in google's results, albeit with very weak PA. After reading many of the articles/blog posts here I realize that a significant revamp and some serious SEO work is needed. So, I've joined this community to learn from those more experienced. Apart from doing 301 redirects for pages that we need to retain, is there any optimal way of removing/repairing the current URL structure as the site gets updated? Also, is it better to make changes all at once or is an iterative approach preferred? Many thanks in advance for any responses/advice offered. Cheers MacRobbo
Intermediate & Advanced SEO | | macrobbo0 -
How do I find the links on my site that link to another one of my pages?
I ran IIS Seo toolkit and it found about 40 pages that I have no idea how they exist. What tool can I use to find out what internal link is linking to them so I can fix them or get rid of them?
Intermediate & Advanced SEO | | EcommerceSite0 -
Buying Domains from an auction and 301 redirecting to your new site.
Lets say I have a website in not to competitive niche. I was considering buying a few aged domains from godaddy auctions and 301 redirecting them to my new domain. Can this alone be enough to rank pretty high for a uncompetitive niche? Can this also be a link building technique in itself since the link juice from the domain purchased carries over? Thanks
Intermediate & Advanced SEO | | junkcars0