locked
Help with UrlRewriter.Net having 2 pages with same name RRS feed

  • Question

  • User-28953151 posted

    Hello,

    I'm using the Intelligencia UrlRewriter.Net module to perform some rewriting on my websites with extensionless urls. Now I have 2 sites. One is the Desktop based website while the other is the mobile based in this form:
    www.mydomain.com
    www.mydomain.com/mobile

    I have a page called profile.aspx which I have successfully been able to rewrite it to www.mydomain.com/profile like this:

    <rewriter>
        <rewrite url="~/profile" to="~/profile.aspx"/>
    </rewriter>

    I also have another similar page for the mobile version www.mydomain.com/mobile/profile.aspx which I need some help in rewriting coz if I go to that page (www.mydomain.com/mobile/profile.aspx) it tends to read the main site's page (www.mydomain.com/profile.aspx)

    So basically I simply need to rewrite both the pages to something likes this without any conflicts:

    www.mydomain.com/profile
    www.mydomain.com/mobile/profile

    Looking forward to some positive feedback

    Best regards,
    Wasim

    Tuesday, August 9, 2011 4:13 PM

Answers

  • User-28953151 posted

    I guess I have fixed it. Had to put ^ and the $ at the beginning and end of the url respectively.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, August 10, 2011 7:33 AM