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
-
Moving html site to wordpress and 301 redirect from index.htm to index.php or just www.example.com
I found page duplicate content when using Moz crawl tool, see below. http://www.example.com
Intermediate & Advanced SEO | | gozmoz
Page Authority 40
Linking Root Domains 31
External Link Count 138
Internal Link Count 18
Status Code 200
1 duplicate http://www.example.com/index.htm
Page Authority 19
Linking Root Domains 1
External Link Count 0
Internal Link Count 15
Status Code 200
1 duplicate I have recently transfered my old html site to wordpress.
To keep the urls the same I am using a plugin which appends .htm at the end of each page. My old site home page was index.htm. I have created index.htm in wordpress as well but now there is a conflict of duplicate content. I am using latest post as my home page which is index.php Question 1.
Should I also use redirect 301 im htaccess file to transfer index.htm page authority (19) to www.example.com If yes, do I use
Redirect 301 /index.htm http://www.example.com/index.php
or
Redirect 301 /index.htm http://www.example.com Question 2
Should I change my "Home" menu link to http://www.example.com instead of http://www.example.com/index.htm that would fix the duplicate content, as indx.htm does not exist anymore. Is there a better option? Thanks0 -
Best way to do site seals for clients to have on their sites
I am about to help release a product which also gives people a site seal for them to place on their website. Just like the geotrust, comodo, symantec, rapidssl and other web security providers do.
Intermediate & Advanced SEO | | ssltrustpaul
I have notices all these siteseals by these companies never have nofollow on their seals that link back to their websites. So i am wondering what is the best way to do this. Should i have a nofollow on the site seal that links back to domain or is it safe to not have the nofollow.
It wont be doing any keyword stuffing or anything, it will probly just have our domain in the link and that is all. The problem is too, we wont have any control of where customers place these site seals. From experience i would say they will mostly likely always be placed in the footer on every page of the clients website. I would like to hear any and all thoughts on this. As i can't get a proper answer anywhere i have asked.0 -
URL structure change and xml sitemap
At the end of April we changed the url structure of most of our pages and 301 redirected the old pages to the new ones. The xml sitemaps were also updated at that point to reflect the new url structure. Since then Google has not indexed the new urls from our xml sitemaps and I am unsure of why. We are at 4 weeks since the change, so I would have thought they would have indexed the pages by now. Any ideas on what I should check to make sure pages are indexed?
Intermediate & Advanced SEO | | ang0 -
Duplicating content from manufacturer for client site and using canonical reference.
We manage content for many clients in the same industry, and many of them wish to keep their customers on their individualized websites (understandably). In order to do this, we have duplicated content in part from the manufacturers' pages for several "models" on the client's sites. We have put in a Canonical reference at the start of the content directing back to the manufacturer's page where we duplicated some of the content. We have only done a handful of pages while we figure out the canonical reference potential issue. So, my questions are: Is this necessary? Does this hurt, help or not do anything SEO-wise for our ranking of the site? Thanks!
Intermediate & Advanced SEO | | moz1admin1 -
(Australia) Changing .net.au to .com.au - web dev is refusing to do a 301 redirect and wants to run two sites?
After years using a .net.au site, my client has purchased the .com.au version of the same domain. I've now set up a new, responsive website using a wordpress template with new content, but used a similar page structure. I've asked their web developer to now do a 301 permanent redirect on each old page from .net.au site to it's new .com.au page, but he has refused, saying it would be bad for long term SEO. Instead, he says they should run both sites (which I thought would cause duplicate content issues). Both domains are hosted with the same company. I thought as long as the 301 redirects were done on a page by page basis, there were no issues? I'm no SEO expert, (which he claims to be), so I just wanted to get another opinion on what best practice would be in this instance.
Intermediate & Advanced SEO | | carolineraad0 -
Is it worth changing themes to be Responsive, and risk a SERP change?
I've got a site that ranks #1 for it's term. It's Worpress on Thesis 1.85. The site is not responsive and cannot be because Thesis 1x is not (and Thesis 1x is a dead end). I really would like my site responsive, but I fear changing things might affect my #1 rank. The least impactful change I could do is move to Thesis 2.x, but I have come to really dislike the company and hate to get locked in again. There are other frameworks I would prefer to move to, but their impact on my pages' source would be much more. So, my question is, is it worth moving to a new theme (keeping the layout looking exactly the same, although the "source" would look different) just to make the site responsive? Is it that important?
Intermediate & Advanced SEO | | bizzer0 -
Removed Site-wide links
Hi there, I have recently removed quite a lot of site-wide links leaving the only link on homepage's of some websites, since doing this I have seen a dramatic drop on my keywords, going from position 2-3 to nowhere. Has anyone else experienced anything like this, should I expect to see a return on these keywords? Thanks
Intermediate & Advanced SEO | | Paul780 -
How to use my time: Make my site bigger or make link wheels?
I have a site which consist of about 500 pages. It's the biggest of it's tiny niche, and I'm making a livin' out of it (it gets me clients). So this is important to me. I have access to tons and tons of non-copyrighted relevant texts. This text is not on the www, and thus would be unique to google. All though the text is relevant, it's not really useful for my visitors. How to use this text and get the most of my time spent? 1. Making thousands of articles on my website, with internal linking to the "selling" keyword pages? 2. Use text to make a lot of link wheels - eventually linking to my main site? Thanx a bunch! 😃 And if you have other suggestions I'd love to hear'em out 😃
Intermediate & Advanced SEO | | eirikte0