473,320 Members | 2,164 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.

Resolve URL

RSS
Hello everyone.
I am looking for a solution to following problem. If any one is able to help
I want to say thank you very much ahead of time.

My client has a website. For each user they want to have "separate" url in
following fashion --> www.site.com/username

Now, having it in such fashion means to have a "folder" for each user and
they don't want that. Instead they want to be able to parse the url and do
things based on username.

When request comes in and that "folder" not there I get "You not authorized
to view this page" and so on. Now is there a way to be able to pick up that
URL and parse it somehow and redirect browser to a different page. They have
very limited access to the IIS because the host this stuff off site and I
cant physically change the 404 redirect in the IIS, plus I don't want to
write an app that will depend on errors to process logic. I hope i explained
it well. If not, then please write back!!! Ill try to clarify.

Please help!

Thank you much,

RSS
Sep 8 '05 #1
5 1535
Why not pass the username as a parameter? i.e.
www.site.com/default.aspx?UserName=John

"RSS" <RS*@RSS.COM> wrote in message
news:uJ*************@TK2MSFTNGP10.phx.gbl...
Hello everyone.
I am looking for a solution to following problem. If any one is able to
help I want to say thank you very much ahead of time.

My client has a website. For each user they want to have "separate" url in
following fashion --> www.site.com/username

Now, having it in such fashion means to have a "folder" for each user and
they don't want that. Instead they want to be able to parse the url and do
things based on username.

When request comes in and that "folder" not there I get "You not
authorized to view this page" and so on. Now is there a way to be able to
pick up that URL and parse it somehow and redirect browser to a different
page. They have very limited access to the IIS because the host this stuff
off site and I cant physically change the 404 redirect in the IIS, plus I
don't want to write an app that will depend on errors to process logic. I
hope i explained it well. If not, then please write back!!! Ill try to
clarify.

Please help!

Thank you much,

RSS

Sep 8 '05 #2
RSS
I hear you. If it only was so easy. The idea here is that each user would
have their own "space" and they dont have to memorize the long URL.

Thanks for suggestion.

"Onin Tayson" <Le*********@compaid.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Why not pass the username as a parameter? i.e.
www.site.com/default.aspx?UserName=John

"RSS" <RS*@RSS.COM> wrote in message
news:uJ*************@TK2MSFTNGP10.phx.gbl...
Hello everyone.
I am looking for a solution to following problem. If any one is able to
help I want to say thank you very much ahead of time.

My client has a website. For each user they want to have "separate" url
in following fashion --> www.site.com/username

Now, having it in such fashion means to have a "folder" for each user and
they don't want that. Instead they want to be able to parse the url and
do things based on username.

When request comes in and that "folder" not there I get "You not
authorized to view this page" and so on. Now is there a way to be able to
pick up that URL and parse it somehow and redirect browser to a different
page. They have very limited access to the IIS because the host this
stuff off site and I cant physically change the 404 redirect in the IIS,
plus I don't want to write an app that will depend on errors to process
logic. I hope i explained it well. If not, then please write back!!! Ill
try to clarify.

Please help!

Thank you much,

RSS


Sep 8 '05 #3
If it absolutely must be in the format of

www.server.com/folder

Then I would suggest looking up IIS ISAPI filters, as this will give you the
power to intrude on the traffic pipeline of IIS and alter data as it comes
in, and how (and, also redirect). They can be installed and registered on
the machine. I have written extensions before, never filters, and you're
probably in the wrong newsgroup to pursue any more questions about them.
There are other tricks, however, if you wish to do stuff in asp.net.

Something I figured out a while ago was that you may have '/' as a piece of
your querystring. That, in conjunction with HttpModules inserted into the
ASP.Net pipeline (and the registration of a handler for a new file-extension
type) can make URLs like the following a reality:

http://www.server.com/myapplication/...me.dir/folderA
http://www.server.com/myapplication/...me.dir/folderB
......
http://www.server.com/myapplication/...me.dir/folderN

Your myapplication is an ASP.Net web application and, as such, the ASP.Net
pipeline will load HttpModules for you - and you'll simply register an
HttpModule to respond to the request for the '.dir' extesion (or whatever
you choose). The forward slash '/' character becomes part of your overall
querystring (it either shows up in the querystring or you can grab it in its
entirity in the Request object - the exact answer eludes me) as '/folderN'
which you can then cause to redirect, respond accordingly, etc. For example
browse to this address: http://www.microsoft.com/default.aspx/blah/blah, it
resolves to www.microsoft.com.
--
Ben Rush
http://www.ben-rush.net/blog/
http://www.littlebigendian.com/

"RSS" <RS*@RSS.COM> wrote in message
news:uJ*************@TK2MSFTNGP10.phx.gbl...
Hello everyone.
I am looking for a solution to following problem. If any one is able to
help I want to say thank you very much ahead of time.

My client has a website. For each user they want to have "separate" url in
following fashion --> www.site.com/username

Now, having it in such fashion means to have a "folder" for each user and
they don't want that. Instead they want to be able to parse the url and do
things based on username.

When request comes in and that "folder" not there I get "You not
authorized to view this page" and so on. Now is there a way to be able to
pick up that URL and parse it somehow and redirect browser to a different
page. They have very limited access to the IIS because the host this stuff
off site and I cant physically change the 404 redirect in the IIS, plus I
don't want to write an app that will depend on errors to process logic. I
hope i explained it well. If not, then please write back!!! Ill try to
clarify.

Please help!

Thank you much,

RSS

Sep 8 '05 #4
RSS,

Even with the most standard Get you are in my opinion able to do that using
www.site.com?Id=username

Therefore what is the real problem?

Cor
Sep 8 '05 #5
I've developed several secure 'dealership' -- 'membership' type of sites
that had the exact same requirements so this is somewhat 'old hat' to me.
Before I waste my time describing the methodologies I've used which may not
be pertinent or useful I have to ask how secure the client wants their site
to be?

Does the client want users to securely login or simply make it easy for
dimwits to request and access pages that are in the public domain anyway?

As an aside, ASP.NET 2.0 (RTM November 7th) supports Profiles, Membership
and Roles this type of project begs for.
<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/



"RSS" <RS*@RSS.COM> wrote in message
news:uJ*************@TK2MSFTNGP10.phx.gbl...
Hello everyone.
I am looking for a solution to following problem. If any one is able to
help I want to say thank you very much ahead of time.

My client has a website. For each user they want to have "separate" url in
following fashion --> www.site.com/username

Now, having it in such fashion means to have a "folder" for each user and
they don't want that. Instead they want to be able to parse the url and do
things based on username.

When request comes in and that "folder" not there I get "You not
authorized to view this page" and so on. Now is there a way to be able to
pick up that URL and parse it somehow and redirect browser to a different
page. They have very limited access to the IIS because the host this stuff
off site and I cant physically change the 404 redirect in the IIS, plus I
don't want to write an app that will depend on errors to process logic. I
hope i explained it well. If not, then please write back!!! Ill try to
clarify.

Please help!

Thank you much,

RSS

Sep 8 '05 #6

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

Similar topics

6
by: John | last post by:
Hi Right password -> ORA-12154: TNS:Could not resolve service name wrong password => ORA-01017: invalid username/password; logon denied Tested on a Windows XP client connecting to Oracle on...
1
by: Alex Zhitlenok | last post by:
Hi, My question is how to resolve in C# ambiguous overloaded operators? Let say, I have two unrelated classes A and B, each one implements overloaded operator + with the first parameter of type...
2
by: Rob Levine | last post by:
Hi All, This is a cut down version of a post from earlier entitled "Name resolution in .Net". Apologies, for the repeat, but I think the first post was too verbose (it came from a blog article...
2
by: asanford | last post by:
We use StackWalk(StackWalk64) from dbghelp.dll to walk our callstacksas needed, using the various Sym* methods (SymGetSymFromAddr, SymGetLineFromAddr) to resolve source file, function name, and...
7
by: kvnsdr | last post by:
I can type an IP address and receive Internet domain name and my workstation name however no other IPs of computers on our internal network will resolve to a thier machine name only to the same IP...
1
by: vsp15584 | last post by:
Hii..i use the coding as below :- import java.applet.applet; import java.awt.*; import com.sun.j3d.utils.applet.mainframe; import com.sun.j3d.utils.universe.*; import...
1
by: ivanet | last post by:
Hello everyone, I am trying to use the following Schema but I get the error "src- resolve: Cannot resolve the name 'ValuesList' to a(n) 'element declaration' component." at line 144. I have...
5
by: carlpayne1984 | last post by:
Hi all, I'm fairly new to XML, however already I have studied myself stupid without being able to solve this problem. Basically, I have an XML file/Schema about a CD catalog that I've created that...
4
by: =?Utf-8?B?SnVhbiBEZW50?= | last post by:
Hi, I am getting the following in a VC++ EXE (using VS2005) that links several C++ DLLs and uses MFC and ATL, when I try to start it under the debugger: ------- 'Exactus.UX.Studio.v1.exe':...
3
by: Sindhu Rani | last post by:
i hav created 3 classes in 3 different files. am gettin an error durin compilation. wat shud i do??? C:\s\source>javac -d ..\classes devtestdrive.java devtestdrive.java:5: cannot resolve symbol...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
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...
0
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...
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...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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: 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...

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.