Forums

Moving from WP :( .htaccess help (3 posts)

  1. drewsto
    Member
    Posted 2 years ago #

    I have a client that has to move away from WP.

    Currently they are using pretty permalinks and I need to 301 redirect them to the new urls...about 200.

    domain.com/2009/11/04/post-title/

    do I need to change the permalink structure back to the default setting ( domain.com/?p=123 ) before I can write the 301?

    Any clues how I would write the 301 and the best way to go about this process?

  2. songdogtech
    Member
    Posted 2 years ago #

    Standard format for a 301 redirect in htaccess is (in the same domain):

    Redirect 301 /oldurl http://mydomain.com/newurl

    Put the 301 after RewriteEngine on and before any permalink rewrite blocks. No need to change permalinks before you add redirects; doesn't matter as you're moving away from WP.

  3. drewsto
    Member
    Posted 2 years ago #

    Oh wow. I guess I was totally over thinking the dynamic url part.

    I redirect static pages all the time and wasn't expecting this to work, but i tested it and it did.

    Thanks so much songdogtech.

Topic Closed

This topic has been closed to new replies.

About this Topic