Migrated website, how to update redirect inbound links

Good morning,

I just finished migrating a blog website to a new server. This move also included a switch from wordpress cms to expressionengien. The file structure on my new server and application is different than the one on the old site that ran on wordpress. All my incoming links are now just getting a 404 error.

Is there a way to somehow redirect these incoming links? I have looked into 301 redirects but I am not sure how this could be done. It wouldnt be practical to write a redirect rule for every single blog post.

I really hope there is a solution for such a thing. this was my first move of that kind so I have no experience with it.


You may want to consider doing a redirect of all the high traffic pages at least. Otherwise you have a lot of searchers not finding what they are looking for.

so there is nothing short of writing a redirect for every single blog post?

I guess it depends on the path. If they’re like


then yes, they’ll all need individual attention.

But if there’s more to the path


you could do redirects by “topic/wildcard”

old urls look something like this:

new domain look like

Maybe something like ??

RewriteRule /?[0-9]{4}/[0-9]{2}/[0-9]{2}/([-\\w])$ http://domain/blog/$1 [L]

*The Apache forum is where the htaccess regex gurus are more likely to help.

thanks for the help. I will post over at the apache forum, now that I determined that indeed a rewrite rule is the way to approach this.