Changing domains but dont want to break old links... (2 posts)

  1. nolageek
    Posted 9 years ago #

    I'm switching domains from nolageek.com to queerandloathing.com.

    nolageek.com will become my 'business' site and q.a.l. will be my blog. However, I don't want to break any old permalinks.

    I guess I only need to parse individual posts in .htaccess, as I doubt anyone is linking to my categories.

    What would be the best scheme to do this?

    I suck at regular expressions... but I have blog entries that date from 2002 - current. So, I basically need to say...

    RedirectMatch ^200([2-7])/(.*)/$ queerandloathing/200$1/$2

    Is that right? close? :)

  2. nolageek
    Posted 9 years ago #

    I found this in the forum, and it worked! (I checked before I posted this though, but kept trying new terms.)

    Wanted to update it in case anyone else looks for it in the future.

    This should replace your current wordpress area of your .htaccess file.
    RewriteEngine On
    RewriteBase /
    RewriteRule ^200(.+) http://newdomain.com$1 [R=301,L,NC,QSA]

Topic Closed

This topic has been closed to new replies.

About this Topic