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?
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.
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.