i have website running on microsoft azure. developing new cms system website , using https instead of http new website. have redirect old urls new urls. old , new urls different - not http vs https different.
what correct way 301 redirects old pages? must done correctly wont affect seo.
for apache web server can create .htaccess file old , new url , used 301 redirect file. see this: https://mediatemple.net/community/products/grid/204643080/how-do-i-redirect-my-site-using-a-htaccess-file there must similar azure , asp.net.
if rewriting scheme http https, can use following rule in <system.webserver>
:
<rewrite> <rules> <rule name="force https" enabled="true"> <match url="(.*)" ignorecase="true" /> <conditions> <add input="{https}" pattern="off" /> </conditions> <action type="redirect" url="https://{http_host}/{r:1}" appendquerystring="true" redirecttype="permanent" /> </rule> </rules> </rewrite>
Comments
Post a Comment