473,320 Members | 1,845 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,320 software developers and data experts.

Transferring User based on Short URL

Is there an easy way to configure a site to load certain pages based on a
short URL entered? For example...

www.domain.com/sitemap loads
www.domain.com/application/sitemap.aspx?show=all
www.domain.com/privacy loads www.domain.com/application/privacy.aspx

etc.

I currently set up a folder and a default.aspx containing a
response.redirect to the destination, however this is becoming too
cumbersome to maintain.

I hope this is clear, but if not I can try to clarify.

TIA

-Brian
Jan 31 '06 #1
3 1672
You want to use URL Rewriting.

http://msdn.microsoft.com/library/de...lrewriting.asp

Juan T. Llibre
ASP.NET MVP
ASPNETFAQ.COM : http://www.aspnetfaq.com
==================================
"Brian Hoops" <bhoops.remove_me@and_me.stoughtonutilities.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Is there an easy way to configure a site to load certain pages based on a short URL entered? For
example...

www.domain.com/sitemap loads www.domain.com/application/sitemap.aspx?show=all
www.domain.com/privacy loads www.domain.com/application/privacy.aspx

etc.

I currently set up a folder and a default.aspx containing a response.redirect to the destination,
however this is becoming too cumbersome to maintain.

I hope this is clear, but if not I can try to clarify.

TIA

-Brian

Jan 31 '06 #2
Hello Brian,

Have you checked out the <urlMappings> element in the <system.web> section
of the web.config file? Handles the non-complex/non-dynamic case of url
mapping.

For more dynamic url mapping check out the following list of articles from
aspnetworl.com: http://www.aspnetworld.com/articles/2004011901.aspx.

--
brians
http://www.limbertech.com
"Brian Hoops" wrote:
Is there an easy way to configure a site to load certain pages based on a
short URL entered? For example...

www.domain.com/sitemap loads
www.domain.com/application/sitemap.aspx?show=all
www.domain.com/privacy loads www.domain.com/application/privacy.aspx

etc.

I currently set up a folder and a default.aspx containing a
response.redirect to the destination, however this is becoming too
cumbersome to maintain.

I hope this is clear, but if not I can try to clarify.

TIA

-Brian

Jan 31 '06 #3
Thanks. It looks like the <urlMappings> is all I would need, but since that
is only in .net 2.0 and we're using 1.1 I'll look into URL rewriting.

Thanks!

-Brian
"brians[MCSD]" <br********@discussions.microsoft.com> wrote in message
news:A8**********************************@microsof t.com...
Hello Brian,

Have you checked out the <urlMappings> element in the <system.web> section
of the web.config file? Handles the non-complex/non-dynamic case of url
mapping.

For more dynamic url mapping check out the following list of articles from
aspnetworl.com: http://www.aspnetworld.com/articles/2004011901.aspx.

--
brians
http://www.limbertech.com
"Brian Hoops" wrote:
Is there an easy way to configure a site to load certain pages based on a
short URL entered? For example...

www.domain.com/sitemap loads
www.domain.com/application/sitemap.aspx?show=all
www.domain.com/privacy loads www.domain.com/application/privacy.aspx

etc.

I currently set up a folder and a default.aspx containing a
response.redirect to the destination, however this is becoming too
cumbersome to maintain.

I hope this is clear, but if not I can try to clarify.

TIA

-Brian

Jan 31 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Bennett Haselton | last post by:
I'm looking for a PHP tutorial that specializes in how to build sites that are based around user logins. i.e. the user logs in on the front page, and are taken to a main login page where fields on...
1
by: r_burgess | last post by:
I am looking for some guidance on transferring data between two pages in my ASP.net Web app (intranet). I have a form that will have a button and a text box on it (among other controls of course)...
4
by: Michael Kragh Pedersen | last post by:
I have four links, and depending on which of those, I click, I want to either increment or decrement a variable with some value. I have earlier been told how to do that, but I was wondering, how I...
2
by: ryan.d.rembaum | last post by:
Hello, I am trying to build a standardized login screen that several different web application could use. What I would like is for the login screen to detect where the user has come from. ...
2
by: Dino | last post by:
dear all, i got this script form a customer. in general, it recieves data which is send via http to a server and generates a .xml file from this data. because i'm not familar with .asp, i'm...
3
by: JayD | last post by:
(Not sure whether it is a general aspnet problem or a specific security problem, hence posting it in 2 groups). This will solve for us a number of problems. I have developed a website on my...
6
by: billie | last post by:
Hi all. I'm writing a TCP-based application that I will use to trasfer binary files through the network. This piece of code represents how do I get a file from a remote peer and save it on my local...
8
by: | last post by:
I'm looking for some design guidance on a collection of projects I'm working on. The project involves a bunch of websites constructed out of a collection of user controls. Different user...
1
by: =?Utf-8?B?Z29sZGVucmF0ZQ==?= | last post by:
Hi everyone, I have a client who wants a solution for the following problem. I'm not sure that its possible but I'll ask anyway. The client has joined godaddy's reseller plan. They've provided...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
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: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
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...
0
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

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.