Support » Fixing WordPress » Changing domains but dont want to break old links…

  • 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? 🙂

Viewing 1 replies (of 1 total)
  • 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.
    
    #BEGIN WORDPRESS
    
    RewriteEngine On
    RewriteBase /
    
    RewriteRule ^200(.+) http://newdomain.com$1 [R=301,L,NC,QSA]
    
    #END WORDPRESS
Viewing 1 replies (of 1 total)
  • The topic ‘Changing domains but dont want to break old links…’ is closed to new replies.