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
-
I just bought a SSL Key, do I need to redirect all my links?
I just bought a SSL Key, do I need to redirect all my links? Example http://mysite.com redirect 301 to https://mysite.com Otherwise, I will lose all my ranking I guess?
Intermediate & Advanced SEO | | Gab-SEO0 -
Hreflang tag on links to alternate language site
Hey everyone! In the interest of trying to be brief, here's the situation in my favorite form of communication, bullet points! Client has two sites; one is in English and one is in Japanese Each site is a separate URL, no sub-domains or sub-pages Each main page on the English version of the site has a link to the homepage of the Japanese site Site has decent rankings overall, with room for improvement from page 2 to page 1 No Hreflang tags currently used in links to the Japanese version from the English version Given that the site isn't really suffering for most rankings, would this be helpful to implement on the English version? Ideally, I'd like each link to be updated to the corresponding subject matter of the Japanese, but in the interim it seems like identifying to Google that the link on the other side is a different language might be helpful to both the user and to maybe help those rankings on page two creep a little higher to page one. Thanks for reading, I appreciate your time.
Intermediate & Advanced SEO | | Etna0 -
Newly Acquired Website--Questions on Changing Permalink Structure
I just acquired a new website. The domain is about 7 years old with around 1000 indexed pages in google. Decent domain authority at 34, PR 4, a lot of inbound links. The thing that's driving me crazy is the permalink structure--set up as month/post name in wordpress http://xxxxxxx.com/2015/01/sample-post/ Based on my experience and I could be wrong, but I would think that the structure would be more effective with just post name and no date. Am I absolutely insane at this point to try and change it?
Intermediate & Advanced SEO | | tryfantasy0 -
Rankings Tanked since new Site redesign land new url Structure ? Anything Glaringly Obvious I need to check ?
Hi All, I've just checked my rankings and everything on my eCommerce Site has pretty much tanked really badly since my new URL structure and site redesign was put in a place 2 weeks ago. My url structure was originally long and had underscores but we have now made it clean, shorter and use hyphens. We also have location specific pages and we have incorporated these into the new url structure.Basically it now pretty much follows the breadcrumb trail on our website. We were originally a general online hire site but now we have become niche and only concentrating on one types of products, so we got rid of all the other categories/products and pages we do not deal with anymore. Our Rankings issue , was only bought to light in the most recent MOZ Ranking report so it's looking site google hates our new store. Someone mentioned the other day, that Google may have been doing a Panda/Penguin refresh last weekend, but I am surprised to have dropped like 20 to 50 places for most of my keywords. We have set up the 301 redirects, We have also made the site alot smaller and set up a few thousand 404's to get rid of a lot of redundant pages . We have cut down massively on the thin/duplicate content and have lots of good new content on there. We did new sitemaps , set up schema.org. , increase text to code ratio . Setup our H1-H5 tags on all our pages. made site mobile responsive.. Basically , we are trying to do everything right. Is there anything glaringly obvious , I should be checking ?. I attach a Short url link if anyone wants to have a quick glance- http://goo.gl/7mmEx i.e Could it be a problem with the new urls or anything else that I should be looking at ?.. I.e how can I check to make sure the link juice is being passed on to the new url ? Or is all this expected when doing such changes ? Any advice greatly appreciated .. Pete
Intermediate & Advanced SEO | | PeteC120 -
Counting over-optimised links - do internal links count too?
To whit: In working out whether I've too many over-optimised links pointing to my homepage, do I look at just external links -- or also the links from my internal pages to my homepage? In other words, can a natural link profile from internal pages help dilute overoptimisation from external links?
Intermediate & Advanced SEO | | Jeepster0 -
How best to structure wordpress site.
I need help on how to structure my wordpress site to avoid duplicate content issues. Basically I have a main category page for each of my targeted keywords (about 12). From each of those though I want to create a category for each county in the uk and then about 15 towns within each county. This means I'm creating a LOT of categories. Eg: /plumbers/lincolnshire/lincoln x 15 other counties and towns /local-plumbers/cambridgeshire/cambridge x 15 other counties and towns (I have about 12 main keywords I'm going after) I'm basically creating a category for every town in the UK going after long tail keywords. What is the best way to manage this in wordpress? Advice from another question I posted on here is to write a unique category description for each one as the posts in each category are almost identical. The other problem here is I'm ending up with hundreds of links on a page. (They can't all be seen by the user as I'm using a drop down menu plugin). Any advice appreciated.
Intermediate & Advanced SEO | | SamCUK0 -
Site unaffected by algo changes until this month- why?
I had 2 websites. One of these I trashed as it took a pretty big hit from Panda and was virtually wiped out by Penguin. The other site is over 4 years old and until this month had miraculously remained unaffected by all the changes. In fact, my traffic this October was better than it had ever been. This month my traffic is way, way down. I don't know if this is related to the hurricane (my business is in NYC) or if it is just a factor that web traffic to any site can fluctuate considerably from month to month, or if there is a more insiduous reason. Most of my links are directory links, including some good ones like DMOZ and BOTW , and the most high quality directories I could find. The site is www.affordable-uncontested-divorce.com. . Does anyone have any ideas? thx Paul
Intermediate & Advanced SEO | | diogenes0 -
Can Linking Between Your Own Sites Excessively Be a Penguin No-No?
I have a bunch of travel-related sites that for a long time dominated google.com.au without any intensive SEO whatsoever. Aside from solid on-page content and meta tag, I did no link building. However, all of my sites are heavily interlinked, and I think they are linked with do follow links and lots of anchor texts. Here are a few of them: www.beautifulpacific.com www.beautifulfiji.com www.beautifulcooklands.com My idea in inter-linking them was to create a kind of branded "Beautiful" nexus of sites. However, when Penguin hit -- which I believe was on April 27th -- search traffic crashed, and has crashed over and over again. I've read that Penguin penalized over-optimization vis a vis anchor text links. I don't have a lot of inbound links like these, but they are everywhere among my sites. Is it possible that all of my text links have hurt me with Penguin? Thanks to everyone in advance for your time and attention. I really appreciate it. -Mike
Intermediate & Advanced SEO | | RCNOnlineMarketing0