301 Redirects are used for permanent URL redirection, sending users to a different URL than the one they originally typed into their browser or selected from search engine results. The 301 redirect is considered a best practice for upgrading users from HTTP to HTTPS.
It's SEO best practice to have a single preferred domain name that
other URLs point to. For example, if a customer enters company.com
directly into their browser, they can be taken to www.company.com
via a
permanent 301 redirect. The redirect is important because it helps ensure that you obtain an
aggregated page rank and authority scores for all versions of your site URLs, thus boosting
your organic search engine rankings.
www.company.com
.This is achieved by setting the site's HTTP Hostname and HTTPS Hostname appropriately in the Hostname Alias File.
company.com
to www.company.com
.RedirectURL-Domain
or RedirectSiteURL
).The SiteGenesis application includes a
sample redirect pipeline named
RedirectURL
.
The static mapping has the following format.
<legacy URL> [i]
p,[<protocol>], [<host>], <pipeline>,
[<locale>], [<parameter name>, <parameter
value>]*
permanent
is set to true within the ISML tag (isredirect
)
used in the redirect pipeline template.
<isredirect
location="${pdict.Location}" permanent="true">
redirectpermanent
template.For example, in Google Webmaster Tools, set the preferred domain to www.company.com.
Ensure that Google sees you as the owner of both domains by following one of their ownership verification methods.