rel="canonical"
, you can also use an HTTP redirect if your IIS server has URL Rewrite installed. You don't even need access to the web server to set up a rewrite rule. You can do it in your site's web.config.Details: https://www.mikesdotnetting.com/article/290/seo-for-asp-net-web-sites-urls
<system.webServer> <rewrite> <rules> <rule name="Redirect non-www traffic to www" stopProcessing="true"> <match url=".*" ignoreCase="true" /> <conditions> <add input="{HTTP_HOST}" pattern="^mikesdotnetting.com$" /> </conditions> <action type="Redirect" url="http://www.mikesdotnetting.com/{R:0}" redirectType="Permanent" /> </rule> </rules> </rewrite> </system.webServer>
No comments:
Post a Comment