Click here to Skip to main content
15,891,738 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have page that name is default.aspx to create user to their personal web page. for example user abc and xyz create their webpage like i.e www.zzz.com/abc or www.zzz.com/xyz. when user create their page and enter their URL i.e www.zzz.com/abc it will call the default.aspx but it will display the url as www.zzz.com/abc insted of www.zzz.default.aspx.

Thanks
Manohar
Posted

1 solution

you need to use URl rewrite in asp.net application

Add the flowing code in web.config


JavaScript
<configuration>

<configSections>
<section name="rewriter"  
         requirePermission="false" 
     type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter" />
</configSections>

<system.web>

<httpModules>
  <add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule, Intelligencia.UrlRewriter"/>
</httpModules>

</system.web>

<rewriter>
 <rewrite url="www.zzz.com/abc" to="www.zzz.default.aspx" />
 //Some other re-writers to achieve specific requirements.
</rewriter>  

</configuration> 
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900