WordPress Permalink Redirection using RegExp

I was using the following permalink structure on my wordpress blog previously

http://domain.com/some-text-missing.html

Read More

Now I have changed the permalink to

http://domain.com/archives/2010/09/some-text-missing/

The tag structure is

http://domain.com/archives/tag/sometag/

I am using the wordpress redirection plugin and I am stuck with the regular expressions.

Related posts

Leave a Reply

1 comment

  1. I don’t know about the plugin you are using, but if there are not to many sites, i would do the redirects directly in .htaccess like this:

    Redirect 301 /some-text-missing.html /archives/2010/09/some-text-missing/
    

    you can’t use here a regex because the new url structure has a new variable: the year/month. so regex wont know where to redirect your users. I don’t know about your plugin, but i would write it myself, I would read the file name “some-text-missing” then search for it in the database and if found redirect to the new url.