473,325 Members | 2,870 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

How do you create a Vanity URL in .net?

Hey Guys,

How do you create a vanity url with dot.net and are there any good tutorial on making vanity url.

Example: mydomain.com/contact.aspx
I would like it to be mydomain.com/contact

thank you,
Curtis
Sep 19 '10 #1
1 2634
This is with ASP.NET I assume.

You can with IIS7 in integrated pipeline mode. This lets ASP.NET hook into every request. Otherwise ASP.NET is an ISAPI module and can only handle whatever it is configured for (ASPX, ASHX, ASMX, AXD, etc). This is an option when you configure or create an asp.net apppool.

You can then use the HttpContext.RewriteUrl method in an HttpModule or global.asax. Just need to look at the current url from the request and call Rewrite with the actual url to the aspx file.

I would recommend looking into the ASP.NET MVC framework. It takes care of the pretty URL plumbing via its routes.
Sep 22 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: Chris Guimbellot | last post by:
Hello, I am trying to create vanity URLs (I think that's what they are called) that link directly to an item's listing page on my site. Currently, the urls are set up something like the...
1
by: steve.anon | last post by:
Hi - Any help or pointer on this would be greatly appreciated. I'm working on something similar to blogger.com. Users sign up and they get their own webpage, with a domain name of...
7
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an NT4.0 machine, which has many Access reports. I...
2
by: Showjumper | last post by:
How would i go about making vanity urls such that its really the same url for everyone but that it just appears different based on who logs in.
1
by: Stimp | last post by:
I know how to create vanity urls for users when they append a .aspx to their name, but is it possible to pick up their name alone (without affixing .aspx?) e.g. in the global.asax file I can...
2
by: Stimp | last post by:
sorry I have to repost this question since I can't find the replies (if any) to a question I posted two days ago (what's the post turn-around for this group btw, every 2 days they delete all posts...
3
by: Leon | last post by:
How to personalized different parts of my website using vanity sub-domain name url. example: my domain name is www.mydomain.com. I would like the vanity url to be myname.mydomain.com, and...
4
by: I_AM_DON_AND_YOU? | last post by:
There is one more problem I am facing but didn't get the solution. In my Setup Program I am not been able to create 2 things (when the program is intalled on the client machine ) : (1) create...
37
by: Steven Bethard | last post by:
The PEP below should be mostly self explanatory. I'll try to keep the most updated versions available at: http://ucsu.colorado.edu/~bethard/py/pep_create_statement.txt...
18
by: Steven Bethard | last post by:
I've updated the PEP based on a number of comments on comp.lang.python. The most updated versions are still at: http://ucsu.colorado.edu/~bethard/py/pep_create_statement.txt...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.