Rewrite URL this way, is it possible?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Iaml

    #1

    Rewrite URL this way, is it possible?

    We have a lot of legacy pages written in HTML or classic ASP. A lot
    of our web users bookmarked these pages.

    Now we will rewrite these HTML or classic ASP pages in ASP.NET 2.0 or
    3.5.

    I am using URLRewritingNet (http://www.urlrewriting.net/en/
    Default.aspx) to redirect all requests in the format of *.htm, *.html
    or *.asp to my asp.net pages. This is completely configured in
    web.config.

    This works great. But, we would also like to change the URL in the
    browser's address bar from somepage.htm to somepage.aspx.

    IMPORTANT: We are not allowed to explicitly do Response.Redire ct.

    Is there a way to do this? Please share your insights about this
    issue. Thanks.
  • Munna

    #2
    Re: Rewrite URL this way, is it possible?

    On Jun 1, 9:53 am, Iaml <gnewsgr...@gma il.comwrote:
    We have a lot of legacy pages written in HTML or classic ASP. A lot
    of our web users bookmarked these pages.
    >
    Now we will rewrite these HTML or classic ASP pages in ASP.NET 2.0 or
    3.5.
    >
    I am using URLRewritingNet (http://www.urlrewriting.net/en/
    Default.aspx) to redirect all requests in the format of *.htm, *.html
    or *.asp to my asp.net pages. This is completely configured in
    web.config.
    >
    This works great. But, we would also like to change the URL in the
    browser's address bar from somepage.htm to somepage.aspx.
    >
    IMPORTANT: We are not allowed to explicitly do Response.Redire ct.
    >
    Is there a way to do this? Please share your insights about this
    issue. Thanks.
    Hi

    seems you already touched the wall...
    i am not sure whether it will help you or not but still

    check out scott'g blog post on url rewrite



    Best of luck

    Munna



    Comment

    • Iaml

      #3
      Re: Rewrite URL this way, is it possible?

      On Jun 1, 2:13 am, Munna <munna...@gmail .comwrote:
      On Jun 1, 9:53 am, Iaml <gnewsgr...@gma il.comwrote:
      >
      >
      >
      We have a lot of legacy pages written in HTML or classic ASP. A lot
      of our web users bookmarked these pages.
      >
      Now we will rewrite these HTML or classic ASP pages in ASP.NET 2.0 or
      3.5.
      >
      I am using URLRewritingNet (http://www.urlrewriting.net/en/
      Default.aspx) to redirect all requests in the format of *.htm, *.html
      or *.asp to my asp.net pages. This is completely configured in
      web.config.
      >
      This works great. But, we would also like to change the URL in the
      browser's address bar from somepage.htm to somepage.aspx.
      >
      IMPORTANT: We are not allowed to explicitly do Response.Redire ct.
      >
      Is there a way to do this? Please share your insights about this
      issue. Thanks.
      >
      Hi
      >
      seems you already touched the wall...
      i am not sure whether it will help you or not but still
      >
      check out scott'g blog post on url rewrite
      >
      http://weblogs.asp.net/scottgu/archi...rick-url-rewri...
      >
      Best of luck
      >
      Munnawww.munna. shatkotha.comww w.munna.shatkot ha.com/blogwww.shatkot ha.com
      Thank you. I have read Scott's blog on that topic. Actually, I got
      to know about URLRewritingNet from his blog.

      Anyone else would like to give me a little hint?

      Comment

      • Aidy

        #4
        Re: Rewrite URL this way, is it possible?

        This works great. But, we would also like to change the URL in the
        browser's address bar from somepage.htm to somepage.aspx.
        >
        IMPORTANT: We are not allowed to explicitly do Response.Redire ct.
        >
        Is there a way to do this?
        A javascript re-direct, other than that it's impossible.


        Comment

        • rogers.terry@gmail.com

          #5
          Re: Rewrite URL this way, is it possible?

          On Jun 1, 4:53 am, Iaml <gnewsgr...@gma il.comwrote:
          We have a lot of legacy pages written in HTML or classic ASP. A lot
          of our web users bookmarked these pages.
          >
          Now we will rewrite these HTML or classic ASP pages in ASP.NET 2.0 or
          3.5.
          >
          I am using URLRewritingNet (http://www.urlrewriting.net/en/
          Default.aspx) to redirect all requests in the format of *.htm, *.html
          or *.asp to my asp.net pages. This is completely configured in
          web.config.
          >
          This works great. But, we would also like to change the URL in the
          browser's address bar from somepage.htm to somepage.aspx.
          >
          IMPORTANT: We are not allowed to explicitly do Response.Redire ct.
          >
          Is there a way to do this? Please share your insights about this
          issue. Thanks.
          To change the URL in the browser you want to send a redirect, if you
          send a 301 HTTP Code ("Moved Permenantly") then search engines etc can
          update their links to follow the new version.

          Looking at the docs for UrlRewritingNet it looks like this is
          supported, something like:
          <urlrewritingne t>
          <rewrites ... redirect="Appli cation" redirectMode="P ermanent" ... >
          ....
          </rewrites>
          </urlrewritingnet >

          Comment

          Working...