What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 58991 |  Welcome, Guest!   Register  Login
 Home > Forums > C# > Web Application URL Re-writing ...
Mdjack

Web Application URL Re-writing

Replies: 2 | Posted by: Mdjack on 7/17/2012 | Category: C# Forums | Views: 329 | Status: [Member] | Points: 10  


Hi Friends,

I have on scenario for my development. Can any one Guide / help me for URL Re-writing custom techniques. This is very urgent requirement for me.

I have ASP.NET 3.5 application running under IIS7 under a virtual directory. So the URL of my app is like http://site.com/{0}/{1}/{2}/. . . . /{n}/*.aspx. I want to redirect the request based on the Logged In user credentials to site.com/{0}/default.aspx to site.com/{0} for better SEO.


Thanks,
Mohamed. N

N. MOHAMED ZACKKARIAH


Reply | Reply with attachment | Alert Moderator

 Responses below this adGet hundreds of .NET Tips and Tricks videos

 Replies

Ranjeet_8
Ranjeet_8  
Posted on: 7/17/2012 2:19:59 AM
Level: Gold | Status: [Member] | Points: 25

Mdjack, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Mdjack
Mdjack  
Posted on: 7/17/2012 2:37:20 AM
Level: Starter | Status: [Member] | Points: 25

Hi,

Based on the User Login credentials i want to use the URL rewriting without using the IIS settings.

Want to create URL rewrite based on User Id and Password.

On my site I have a several Level. For Example http://site.com/{0}/{1}/{2}/. . . . /{n}/*.aspx
here
1. {0}=> Subscription module
2. {1}=> Tenant/Template module.
3. {2}=>Application/Work space module.
. . .
. . .
. . .
. . .
n. {n}=> DB/ Template Management Module.

In the code behind of my Login.aspx page, I get the userId, Password and pass this to a method in my DAL.GetUserByUserId().
In y database I have a tabl called Members and Application_Mapping tables. The method get the data from members table and display details on the page about the user.
What I want to happen is when they have logged in and are diverted (based on the Application_Mapping table) to corresponding page.




N. MOHAMED ZACKKARIAH

Mdjack, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Reply - Please login to reply


Click here to login & reply

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/23/2013 8:35:58 AM