Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I have created a website whose url is: http://localhost:54785/Mobile%20Browser/Login.aspx[^]

After successful login i am getting redirected to
http://localhost:54785/Mobile%20Browser/ApplicationPage.aspx[^] the above url.

Now my requirement is that ihave to show same url either http://abcCorp/Mobile%20Browser[^] in both the pages instead of above urls.



<configuration>
<configsections>

requirePermission="false"
type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter" />

<system.web>
<httpmodules>
<add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule, Intelligencia.UrlRewriter">


<rewriter>
<rewrite url="~/products/books.aspx" to="~/products.aspx?category=books">
<rewrite url="~/products/CDs.aspx" to="~/products.aspx?category=CDs">
<rewrite url="~/products/DVDs.aspx" to="~/products.aspx?category=DVDs">


this is my code in web.config file. What to do next? plz help
Plz provide me the code for it. Its urgent.
Thanks in advance
Posted
Updated 30-Aug-12 3:08am
v4
Comments
bbirajdar 30-Aug-12 2:15am    
It may be urgent for you but not for us. And we do not provide code...You show us your code and the issue you are facing and we will help you resolve it..
_Amy 30-Aug-12 9:25am    
You cannot assign same URL to all the page, instead you can assign same domain to all the pages.

Here is the solution for you URL Rewriting[^]
 
Share this answer
 
As you are telling you need to change the url to following:
http://abcCorp/Mobile%20Browser[^]
For that you need to use UrlRewriting and also you need to purchase a Domain named http://www.abccorp.com[^] then you can use that domain to host your site.



--Amit
 
Share this answer
 
v2
Comments
Amit Roy 31-Aug-12 0:52am    
ok i got it. I will try to implement url rewriting

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