How to redirect 301 or 302 from domain#1 - to domain#2

March 1, 2019 500 views
Apache DigitalOcean Control Panels Development Arch Linux CoreOS

How to redirect 301/302 from a domain - https://o-vegas.com/ to another domain - https://vegasshows.us/

1 Answer

A 301 redirect is a permanent redirect.
A 302 redirect is a temporary redirect.
Sometimes, a 301 redirect will suffer problems redirecting a pathname.

I built my own JavaScript module which adds the pathname to the new hostname.

https://o-vegas.com -> https://vegasshows.us
https://o-vegas.com/events -> https://vegasshows.us/events

Have another answer? Share your knowledge.