URL Re-write question

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

    URL Re-write question

    Hi,

    From
    http://dotnetguts.blogspot.com/2008/...writernet.html I
    managed to rewrite
    http://www.example.com/product.aspx?...e=Panasonic+TV to:


    I am new to URL re-write and I have couple of questions:


    1. As far as search engines such as google are concerned, does file
    extension in URL matter? If so How can I change Panasonic-TV-123.aspx to
    Panasonic-TV-123.html?
    2. At the moment All my aspx files in my public app folder are URL
    re-written to page2.aspx due to my web.config setting as follow:
    <rewriter>
    <rewrite url="~/public/(.+)-(.+).aspx"
    to="~/public/page2.aspx?MyTi tleId=$2"/>
    </rewriter>

    How can I change the url re-write destination individually for each aspx
    page as follow:

    <rewrite url="~/public/page1.aspx" to="~/public/page2.aspx?MyTi tleId=$2"/>
    <rewrite url="~/public/page3.aspx" to="~/public/page4.aspx?MyTi tleId=$2"/>
    .....
    but when I try to load page1.aspx it loads page2.aspx

    Thanks for your time.

    Med


Working...