Solved

Redirecting or Rewriting tidy URLs

Posted on 2011-03-22
3
570 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
  • 2
3 Comments
 
LVL 16

Accepted Solution

by:
Imran Javed Zia earned 500 total points
Comment Utility
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
Comment Utility
Thanks IJZ, I am just looking at these now.

Rit
0
 
LVL 16

Expert Comment

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

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

762 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now