As I understand this can be done by either changing the CNAME record in the DNS. Or this can be done using HTTP redirects. I am wondering what is a recommended way of doing this and pros and cons of each approach. What would be friendlier option for search engine like Google?
As I understand this can be done by either changing the CNAME record in
Share
The correct method usually stated for URL redirection is to have the server configured to send the
301Moved Permanently or307Moved Temporarily HTTP Header Code.The Javascript
window.location.hrefmethod will probably be ignored by search engines, while the<meta>refresh method is usually considered a bad practice.The Wikipedia page documents each method with a fair amount of detail.