A Client Changed the Link Structure for Their Site... Not Just Once, but Twice
-
I have a client who's experiencing a number of crawl errors, which I've gotten down fo 9,000 from 18,000. One of the challenges they experience is that they've modified their URL structure a couple times.
First it was: site.com/year/month/day/post-name
Then it was: site.com/category/post-name
Now it's: site.com/post-nameI'm not sure of the time elapsed between these changes, but enough time has passed that the URLs for the previous two URL structures have been indexed and spit out 404s now.
What's the best/clean way to address this issue?I'm not going to create 9k redirect rules obviously, but there's got to be a way to address this issue and resolve it moving forward.
-
That looks like a very useful plugin Keri
-
Look for the "Redirection" plugin for Wordpress, that can help you make redirects easily. It's also an easy way to let you see what's a 404 on your site, and make redirects from the page listing the 404s.
-
Sure, here's the mod_rewrite guide straight from the horse's mouth
http://httpd.apache.org/docs/2.0/misc/rewriteguide.htmlHere's a nice beginner's guide:
http://www.addedbytes.com/for-beginners/url-rewriting-for-beginners/...with a little cheatsheet for some of the common commands:
http://www.cheatography.com/davechild/cheat-sheets/mod-rewrite/ -
Wow guys! Thanks for the responses. You've given me a couple things to think about.
The suggestions from Thomas and GYMSN might be the way I choose to plod ahead. Though, the rewrite rule seems like an interesting play. I have no idea what either of those lines mean. Heh. Is there a reference you could recommend, Woj, that might shed more light on rewrite rules?
A couple technical pieces to throw out there:
1. It's a WordPress site, so they don't have "folders," per se.
2. They run on linux, with an apache web server
-
Ryan is absolutely spot on.. you can create some redirection rules in the .htaccess (assuming the site's on apache)
something along the lines of..
RewriteRule ^([0-9]{4})/([0-9]{2})/([0-9]{2})/(.*)$ /$4 [R=301,NC,L]
RewriteRule ^category/(.*)$ /$1 [R=301,NC,L]
(of course if totally depends on your site structure & I'd test these on a staging server if possible)
-
Thomas did what we did and it worked fine. We lost a ton of Yahoo rankings for significant keywords though. I now personally never change /url/keywords unless I don't care about the Yahoo traffic (or there is none). Google has no problem with it.
-
You could do this with one or two clever regex commands, the composition of which I can't think of cos its too close to quitting time on Friday. But yeah you don't need 9000 rules.
-
Have you tried creating a redirect rule for each of the folders? From you example above the "post-name" has remained consistent. Therefore if you create a redirect from each folder then you should see a proper resolution with just appending the "post-name"
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
-
Worthwhile for SEO to buy a website with great links which is inactive for 30days and revive it with all its content and after a while transfer it to my core site?
When moving the content after a while to a subdirectory of my core website I would copy the full content and later further improve it. Would the external links that I redirect via 301 be counting similar to links I had earned in the first place? I understand that 301 redirect normally just implies minimal loss of link power. Topic of the site I consider to acquire is loosely related to my core site.
Intermediate & Advanced SEO | | lcourse0 -
Regret changing the URL structure, Would it be appropriate to change it back?
Hi Moz Community, We changed the URL structure 6 months ago for our new site, and we experienced a ranking drop since then. From my understanding, changing URL structure and using 301 redirects will lose link juice, more or less. We think the ranking drop is because of the loss of link juice, assuming other factors remain constant. Here are my questions: How do those link juice losses have an impact on our ranking? Would changing URL structure back to original version regain the lost link juice, with all the redirects done properly? Would it take a lot of efforts? Is it recommended to change it back? Thank you so much in advance. Any thoughts and opinions are appreciated! Best, Raymond
Intermediate & Advanced SEO | | raymondlii0 -
Sitewide Footer Links & Sister Sites
Hi We have a number of sister sites across Europe - the sites are under a different domain name, but have a very similar layout & product offering. When looking at duplicate content, they are flagged as being a moderate risk with similar content - we don't duplicate product content, however it's similar. We also link to them in the footer in a drop down - not anchor text links - however this is still seen by Google. I don't think I'll be able to remove links to our sister companies, but should I implement the Href lang if the sites are slightly different? Or find another way to link to them? Here's an example http://www.key.co.uk/en/key & https://www.manutan.fr/fr/maf
Intermediate & Advanced SEO | | BeckyKey0 -
Our site is on a secure server (https) will a link to http:// be of less value?
Our site is hosted on a secure network (I.E. Our web address is - https://www.workbooks.com). Will a backlink pointing to: http://www.workbooks.com provide less value than a link pointing to: https://www.workbooks.com ? Many thanks, Sam
Intermediate & Advanced SEO | | Sam.at.Moz0 -
Spammy sites that link to a site
Hello, What is the best and quickest way to identify spammy sites that link to a website, and then remove them ( google disavow?) Thank you dear Moz, community - I appreciate your help 🙂 Sincerely, Vijay
Intermediate & Advanced SEO | | vijayvasu0 -
New Website Look/Structure - Should I Redirect or Update Pages w/ Quality Inbound Links
This questing is regarding an ecommerce website that I hand wrote(html) in 1997. One of the first click and buy websites, with cart/admin system that I also developed. After all this time, the Old plain HTML look just doesnt cut it. I just updated to XHTML w/ a very modern look, and believe the structured data will index better. All products and current category pages will have the identical vrls taken from the old version. I decided to go with the switch after manual penalty, which has since been removed... I figured now is the time to update. My big question is that over the years, a lot of my backlinks came from products/news that are either no longer relevant or just not available. The pages do exist, but can only be found from the Outbound Link Source. For SEO purposes, I have thought a few things I can do but can't decide which one is the best choice. Any Insight or suggestions would be Awesome! 1. Redirect the old link to the most relevant page in my current catalog. 2. Add my new header/footer to old page(this will add a navigation bar w/ brands/cats/etc) 3. Simply add a nice new image to the top of these pages linking home & update any broken/irrelevant links. I was also considering adding just the very top 2 inches of my header(logo,search box, phone, address) *note, some of these pages do receive some traffic. Nothing huge, but consider the 50+ pages, it ads up.
Intermediate & Advanced SEO | | Southbay_Carnivorous_Plants0 -
What is a good, structured link building campaign?
I feel like I've tried everything up to this point. I also survived all of the recent Google updates, including the recent EMD update (my site is an EMD). Also I am in the financial sector. I blog every day, I've made some great infographics. I have a very nice website (much better than the competition's), I've done my on-page SEO. I've done the basic link building too. I've hit good business directories, good blog directories (like Technorati), and infographic directories. I've done a bit of comment linkbuilding but I don't see that being very fruitful. I also have a large twitter following + a twitter tribe that shares all of my blog posts. I can't say I've managed to build any sort of community however. My traffic has grown from 0 to anywhere from 80 to 160 visitors every day in just 3 months, and I am happy with that progress but it seems like I have plateaued. Sure I will continue creating content, but what can I do about link building? That's where the results are probably going to come from. I've read all the articles about it, took advice from LinkBuildingSchool.com... but at this point, I'm not sure how to continue. I dont want to continue going after blog comment links, I want quality. Any advice?
Intermediate & Advanced SEO | | MangoMan160 -
New links not showing in site explorer ?
I have built links to my site this past month that I know are live and in place and some do follow and some no follow ... Are the no follow links just not going to show up in my site explorer data ? And the others - why would they not be showing up yet ? SeoMoz updated thier link data aug 1st , my site has been crawled since then , but this new work I have done for link building have not shown up - None of them ? Its like I did not do any work ? how long could it take for them to show up and affect my site trust ect ? Also is there anything I vould be doing to speed the process up of having the new links found ?
Intermediate & Advanced SEO | | jlane90