301 redirect to new domain syntax
-
Hello,
What is the correct syntax for permanently redirecting all slugs from an existing domain to a new one that has exactly the same content and permalinks?
Example:
permanently redirect whatever https://old-domain.com/any-slug
to https://new-domain.com/same-slugwithout having to do this manually for every single slug?
Thanks!
PS: I tried this: ^/(.*) to /new-domain.com/$1
but apparently: “This will redirect everything, including the login pages. Please be sure you want to do this.”Is there a way to exclude admin & login pages?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘301 redirect to new domain syntax’ is closed to new replies.