Solved

Redirecting or Rewriting tidy URLs

Posted on 2011-03-22
3
581 Views
Last Modified: 2012-05-11
Hi All,

Lets say I have the following URL..

www.mysite.com/helloworld

What I need to do is to rewrite or redirect this URL to

www.mysite.com/site/default.aspx?site=helloworld

helloworld could potentially be any alias that has been added to a my database so it needs to cater for handling any alias dynamically.

for example...

www.mysite.com/helloworld

to...

www.mysite.com/site/default.aspx?site=helloworld

Can anyone suggest how I can achieve this?

Thanks,

Rit
0
Comment
Question by:rito1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 16

Accepted Solution

by:
Imran Javed Zia earned 500 total points
ID: 35194608
Hi,

there are many ways to do this,
you can use your own code to do that
http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx
http://weblogs.asp.net/owscott/archive/2010/01/26/iis-url-rewrite-hosting-multiple-domains-under-one-site.aspx
and if you are using iis 7 or later then you can use its builtin features too for url rewriting
http://learn.iis.net/page.aspx/460/using-the-url-rewrite-module/
http://blogs.iis.net/bills/archive/2008/05/31/urlrewrite-module-for-iis7.aspx

and using iis features is more recommended way
Thanks

Thanks
0
 
LVL 1

Author Comment

by:rito1
ID: 35199686
Thanks IJZ, I am just looking at these now.

Rit
0
 
LVL 16

Expert Comment

by:Imran Javed Zia
ID: 35199714
You are most Welcome.
If it was helpful then kindly mark it as answered
Thanks
0

Featured Post

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Visual Studio hangs on running project 6 56
IDE for Python 5 62
ASP.net Markup for Sub Menu 2 39
Multi-Column Repeater 3 22
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question