sunny-j
asked on
permanent 301 redirects using ASP.NET MVC
Is this the best way of redirecting pages (permanent 301 redirects) from the old location of the domain to a new site (same domain) within ASP.NET MVC using c# or should i be creating list within a controller?
<system.webServer>
<rewrite>
<rules>
<rule name="Name of page" stopProcessing="true">
<match url="^Consultants.cshtml$" />
<action type="Redirect" url="/Home/About" />
</rule>
<rule name="New rule" stopProcessing="true">
<match url="^Consultants.cshtml$" />
<action type="Redirect" url="/Home/About" />
</rule>
</rules>
</rewrite>
</system.webServer>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Sorry, other than just doing a re-direct in the page, I have not done it the way you are thinking of.
ASKER