iis - Windows Server 301 redirect -
i have .net site on shared host environment don't have access other solutions require access server.
if put following code in current web.config, enough 301 redirect my-new-site.com? thanks.
<system.webserver> <httpredirect enabled="true" destination="http://www.my-new-site.com/" /> </system.webserver>
http redirection not available on default installation of iis 7. have add in common http features
web server role. enabled on shared host ?
the correct way permanent 301 redirect :
<system.webserver> <httpredirect enabled="true" destination="http://www.my-new-site.com/" httpresponsestatus="permanent" /> </system.webserver>
the default response status 302 (found). more infos here.
Comments
Post a Comment