title: Rewrite URL in asp c#
body: <p>How do I redirect url based on register client in c# .net or asp.net 4.0. For example if client registers as "client1" and our website is www.mycompany.com for every page client proceeds should get www.client1.mycompany.com.</p>
  
  <p>More detailed example:</p>
  
  <p>For example another client created is Client2. The pages i have created in general is like</p>
  
  <pre><code> "www.mycompany.com/product.aspx" 
   "www.mycompany.com/categories.aspx" should be shown as
   "www.client2.mycompany.com/product.aspx" and
   "www.client2.mycompany.com/categories.aspx"
  </code></pre>
  
  <p>respectively
  I have searched on web and found for static pages or using Gloabal.asax during startup of application but haven't found any thing after user logged in.</p>