Redirection means that when a web page is moved to another URL instead of the one accessed, it will be transferred to the destination URL.
The status code is indicated by 3xx, and 301 and 302 are mainly used.
– Example of redirect method
location.href = ‘http: // *****’;
You can redirect to http: // ***** by writing it in the script tag of html like this.
Redirect by .htaccess
RewriteRule ^ $ http: // ***** [R = 301, L]
Bywritingin.htaccesslike this, you can redirect to http: // *****.