Expand my Community achievements bar.

SOLVED

301 redirection to other domain.

Avatar

Level 1

Hi,

How can we achieve 301 redirection to another domain ?

 

Thanks

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

For external domain redirects for users, it is essential to include the protocol (http?s) and host-name, such as "https://www.sourcedcode.com." By doing so, redirects will function as expected and maintain their intended behavior. However, it's crucial to be mindful when using relevant paths that start with a slash (/), as they may result in redirects being confined within the domain of your website. To achieve broader redirect capabilities and avoid such limitations, incorporating the full URL with the protocol and host name is highly recommended. This approach guarantees a smooth and efficient redirect experience for all users and web servers involved.

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

For external domain redirects for users, it is essential to include the protocol (http?s) and host-name, such as "https://www.sourcedcode.com." By doing so, redirects will function as expected and maintain their intended behavior. However, it's crucial to be mindful when using relevant paths that start with a slash (/), as they may result in redirects being confined within the domain of your website. To achieve broader redirect capabilities and avoid such limitations, incorporating the full URL with the protocol and host name is highly recommended. This approach guarantees a smooth and efficient redirect experience for all users and web servers involved.