I want to change/redirect URIs with http/https in this way:
from:
http:// or https://xyz.lastdomain.com/b/custom/any-string/456?foo=bar
to:
https://custom.nextdomain.com/b/any-string/456?foo=bar
the custom string should be in the new URL and everything from b so as the end of the URI should be appended.
I appreciate your help very much.
2
Answers
Could you please try following, considering that your htaccess file and custom folder are in root location.
You ma try this redirect rule from old site’s .htaccess:
This assumes all the paths start with
/b/
right after the domain name.