Wordpress Mod_Rewrite Help Needed With Domain Change

Status
Not open for further replies.

mneylon

Administrator
Staff member
I recently switched domains and permalinks on one of my blogs and have hit a problem with *some* of the redirects: Mod_Rewrite Help Needed!!

Anyone got any ideas on what I'm missing with the existing mod_rewrite rules?
 

unrealindeed

Administrator
Staff member
I recently switched domains and permalinks on one of my blogs and have hit a problem with *some* of the redirects: Mod_Rewrite Help Needed!!

Anyone got any ideas on what I'm missing with the existing mod_rewrite rules?

I guess we can mark this one as solved now :). Adding the below mod_rewrite rules in Apache on the original site's server does the trick. Thanks to dr1ss for their help.

Code:
RewriteRule ^/blog/?$ https://michele.blog [R=301,L]
RewriteRule ^/blog/ https://michele.blog%{REQUEST_URI} [R=301,L]
 
Status
Not open for further replies.
Top