Subdomain routing

Discussion in 'General troubleshooting' started by aviator, Oct 14, 2011.

  1. Hi there,
    I have a sub-domain and I followed Ray's posts on this forum to set up a Default.aspx page which redirects my requests for this sub-domain to the proper folder( /EJ/).
    I also did set up IIS7 rewrite urls to handle{R:1}.

    My question now is: I have webgrid in my MVC 3 application which does sorting on the columns and it generates the URLs for the sorting automatically. It is generating Urls like: /ej/customers/id/1. This is a problem now because the absolute url will become ---> this will fail.

    Can I add a rule in the IIS' rewrite urls to handle resolve something like this? I will have to replace the double /ej/ej with one /ej and that will do it.

    Please let me know. Thanks.

Share This Page