SEO Friendly URLs: 301 Redirect or Routing? RRS feed

  • Question

  • User-1487497583 posted


    I'm currently in the process of trying to make my website more Search Engine friendly and I've been informed that a good way to do this is to 301 redirect every page on my website to remove the .aspx extension e.g. http://www.test.com/about-us.aspx becomes http://www.test.com/about-us.

    One possible way to do this would be to go through every webpage and add the following code (obviously changing each time the URL) to the Head section of the HTML:

    <script runat="server">
    private void Page_Load(object sender, System.EventArgs e)
      Response.Status = "301 Moved Permanently";

    I was however just wondering a couple of things, the first being if this is good practice i.e. if every page on a website is 301 redirected in order to remove the extension it won't negatively effect current search rankings?

    I should probably mention that I currently have the following code added in the Head section already to each page (again each URL is relevant to the page so on the contact page would be http://www.test.com/contact for example):

    <link rel="canonical" href="http://www.test.com/about-us" />

    The second being would URL Rewriting/Routing through the web.config have the same effect i.e. if someone visits http://www.test.com/about-us.aspx would they then automatically be redirected to http://www.test.com/about-us and would search engines remove all references to the .aspx pages and replace with the SEO friendly URLs?

    I would be very interested to hear any thoughts on the best process to achieve SEO URLs?

    Thanks in advance.


    Monday, July 22, 2013 11:23 AM