I migrate my WordPress site into Craft CMS. So far so good. But the URLs for most of the Blog Entries are complete new. What's the best way to handle that? My site is good linked on Google and there are a lot of backlinks. It would be nice to have a solution where I can see which pages the Users call and if it a 404. Afterwards I can create rewrite rules for this sites.

Finest way was a Plugin that combine this two features. Maybe anyone knows one.

2 Answers 2



I like using Reroute. It's a Craft plugin that lets you create 301s and 302s to any of your entry pages within Craft.

  • Yeah I used it too but it's more für stuff where I know it comes a 404. But maybe I've a simple but perfect solution with Google Analytics. I track the 404 and generate a redirect with Reroute. Cool was to have it all in one place. Commented Apr 24, 2016 at 8:59
  • Oh I see what you mean. I personally quite found the plugin that will do both, though it surprises me. There is a commercial plugin I've used once called 404 Finder but if you're comfortable getting the same details from GA then it's not going to improve that workflow.
    – Tim Knight
    Commented Apr 24, 2016 at 13:25
  • @khalwat worked on a plugin like this on. Sounds interesting: khalwat [1:01 AM] There are a few good redirect plugins out there; I’m working on one that adds a nice layer that allows you to redirect from URL patterns that key off of imported data Commented Apr 24, 2016 at 14:13

Why are your blog posts' URLs different after you migrated in the first place? Different slugs, URL format, etc? What you did before is going inform what you can do now. And how did you do the migration?

I see 2 problems here:

  1. 404s
  2. Keeping link juice

If you can solve #1, #2 can take care of itself.

I'd try to get your URLs into same format as what you had for WP and mimic the format. If you can't or won't do that, at least get the post's slug the same as what you had before, then you at least having a fighting chance to try and rewrite what you had into your newer post format.

For example, if you changed /blog/post into news/post or whatever, you might have rewrite rule that looks like:

    RewriteEngine On
    RewriteRule ^blog/(.*)$ /news/$1 [R=301,NC,L]

That'll take care of the format problem but I'm guessing it goes deeper than that.

How did you import your old content? If your post slugs changed, export the old content from WP into a CSV. You likely just need to export the post title and its slug.

Then use Bob Olde Hampsink's handy Import plugin to change your post slugs back to what they were before. Just pick your section(s), re-import the title and slug, and leave the rest of the fields untouched.

You might also use something like Moz's Open Site Explorer or AHREFs to see what your popular posts are from a domain/post authority standpoint and then at least rewrite those so you can keep the link juice happening.

Google webmaster tools can let you see which pages are breaking when it crawls as well as who's linking to your content. Then do as Tim mentioned in his answer and rewrite those.

The 80/20 rule is probably going to be your friend here, just getting those 20% of popular posts will probably fix 80% of your problem. Google is smart enough to figure out the rest of your 404s when you submit a sitemap but you still want to keep it as seamless for visitors coming from those old links.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.