Redirect permalink only with mod rewrite.
-
Hi!
I moved my wordpress weblog to a subdomain, leaving in the main domain an aggregator page. Now I would like to redirect permalink requests to the new domain, leaving the access to the main page intact.
Basically, what I’m trying to do is to redirect all the addresses of this kind:https://kurai.eu//%post_id%/%postname%/
to
https://insertcoin.kurai.eu//%post_id%/%postname%/leaving access to kurai.eu and all the other standard subdirectory intact.
I tried this rule:
RewriteRule ^kurai\.eu/([0-9]+)/$ https://insertcoin.kurai.eu/$1/ [R=301,NC,L]
but it seems not working. Obviously I’ve got problems with regular expressions. Can you help me out with this?Thank you!
- The topic ‘Redirect permalink only with mod rewrite.’ is closed to new replies.