473,385 Members | 1,341 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,385 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
Nov 17 '05 #1
5 4523
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

Nov 17 '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


Nov 17 '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

Nov 17 '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
Nov 17 '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

Nov 17 '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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.