Solved

Redirecting or Rewriting tidy URLs

Posted on 2011-03-22
3
578 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
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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

810 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