|
|
|
date: Sat, 10 May 2008 06:18:01 -0700,
group: microsoft.public.platformsdk.internet.server.isapi-dev
back
URL Redirection/Rewritting/IE browser Bar Changin values
hi all, i have made asp.net application in C#. suppose my site adress is
abc.com
I have pages related to admin and user but there are no folder, there
are internal page links on my site, like login link, when login link is
clicked within site user is redirected to "abc.com/login.aspx" and this
appear as it is on Ie browser bar, what i want is it should
"abc.com/admin/login.aspx" or "abc.com" (change browser bar adress and use
httpcontext.rewritepath() method),
There more similar situations like this but that is simplest, i know
other solution of that instead of login.aspx, link href should be
"/admin/login.aspx" but i dont want this solution and use
httpcontext.Rewritepath() method.
what i am intrested is href should be "abc.com/login.aspx" but afer
clicking on link and on post back Browser bar should display
"abc.com/admin/login.aspx" or only "abc.com", i want change values from
browser bar.
i hope you understand this problem i am doing this asp.net C#.
date: Sat, 10 May 2008 06:18:01 -0700
author: Tasleem arif
Re: URL Redirection/Rewritting/IE browser Bar Changin values
On May 10, 6:18 am, Tasleem arif
wrote:
> hi all, i have made asp.net application in C#. suppose my site adress is
> abc.com
> I have pages related to admin and user but there are no folder, there
> are internal page links on my site, like login link, when login link is
> clicked within site user is redirected to "abc.com/login.aspx" and this
> appear as it is on Ie browser bar, what i want is it should
> "abc.com/admin/login.aspx" or "abc.com" (change browser bar adress and use> httpcontext.rewritepath() method),
> There more similar situations like this but that is simplest, i know
> other solution of that instead of login.aspx, link href should be
> "/admin/login.aspx" but i dont want this solution and use
> httpcontext.Rewritepath() method.
> what i am intrested is href should be "abc.com/login.aspx" but afer
> clicking on link and on post back Browser bar should display
> "abc.com/admin/login.aspx" or only "abc.com", i want change values from
> browser bar.
> i hope you understand this problem i am doing this asp.net C#.
The only way to get /admin/login.aspx to show up in the browser's URL/
Address Bar is to either send a href=/admin/login.aspx or send a 302
Redirection and make the Browser actually go to /admin/login.aspx .
In other words, you're going to have to put something at /admin/
login.aspx to handle the request, or do the rewriting stuff.
Personally, I see no reason in changing the URL. Who cares what it
looks like as long as the correct web page shows up. It's not as if
you expect any random user to successfully copy/paste that URL and
automagically login or do some admin task -- that would be a failure
in your authentication system.
//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//
date: Sun, 11 May 2008 05:58:01 -0700 (PDT)
author: David Wang
Re: URL Redirection/Rewritting/IE browser Bar Changin values
hi, yes i am using URL rewritting but it does not remove/replace the string
displayed at browser bar,pages are displayed correctaly, but my PM says it
should be like that.
"David Wang" wrote:
> On May 10, 6:18 am, Tasleem arif
> wrote:
> > hi all, i have made asp.net application in C#. suppose my site adress is
> > abc.com
> > I have pages related to admin and user but there are no folder, there
> > are internal page links on my site, like login link, when login link is
> > clicked within site user is redirected to "abc.com/login.aspx" and this
> > appear as it is on Ie browser bar, what i want is it should
> > "abc.com/admin/login.aspx" or "abc.com" (change browser bar adress and use
> > httpcontext.rewritepath() method),
> > There more similar situations like this but that is simplest, i know
> > other solution of that instead of login.aspx, link href should be
> > "/admin/login.aspx" but i dont want this solution and use
> > httpcontext.Rewritepath() method.
> > what i am intrested is href should be "abc.com/login.aspx" but afer
> > clicking on link and on post back Browser bar should display
> > "abc.com/admin/login.aspx" or only "abc.com", i want change values from
> > browser bar.
> > i hope you understand this problem i am doing this asp.net C#.
>
>
> The only way to get /admin/login.aspx to show up in the browser's URL/
> Address Bar is to either send a href=/admin/login.aspx or send a 302
> Redirection and make the Browser actually go to /admin/login.aspx .
>
> In other words, you're going to have to put something at /admin/
> login.aspx to handle the request, or do the rewriting stuff.
>
> Personally, I see no reason in changing the URL. Who cares what it
> looks like as long as the correct web page shows up. It's not as if
> you expect any random user to successfully copy/paste that URL and
> automagically login or do some admin task -- that would be a failure
> in your authentication system.
>
>
> //David
> http://w3-4u.blogspot.com
> http://blogs.msdn.com/David.Wang
> //
>
date: Mon, 12 May 2008 00:46:00 -0700
author: Tasleem arif
Re: URL Redirection/Rewritting/IE browser Bar Changin values
URL Rewriting like HttpContext.RewritePath() only does the
modification server-side, and only within ASP.Net (unless it calls
IIS's HSE_REQ_EXEC_URL underneath the scenes, which I haven't observed
it to do). Thus, the browser client-side will *never* see that appear
in the browser bar.
How to make your desired URL show up in the browser's URL/Address Bar
requires the browser to actually request the URL -- either via an HREF
link the user/script clicks on, or via a 302 Redirection sent by the
server in response to a prior request.
You may want to double check what your PM claims. It does not match
with what you observe, and it does not match any expected behavior of
the web server/client.
//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//
On May 12, 12:46 am, Tasleem arif
wrote:
> hi, yes i am using URL rewritting but it does not remove/replace the string
> displayed at browser bar,pages are displayed correctaly, but my PM says it> should be like that.
>
>
>
> "David Wang" wrote:
> > On May 10, 6:18 am, Tasleem arif
> > wrote:
> > > hi all, i have made asp.net application in C#. suppose my site adress is
> > > abc.com
> > > I have pages related to admin and user but there are no folder, there
> > > are internal page links on my site, like login link, when login link is
> > > clicked within site user is redirected to "abc.com/login.aspx" and this
> > > appear as it is on Ie browser bar, what i want is it should
> > > "abc.com/admin/login.aspx" or "abc.com" (change browser bar adress and use
> > > httpcontext.rewritepath() method),
> > > There more similar situations like this but that is simplest, i know
> > > other solution of that instead of login.aspx, link href should be
> > > "/admin/login.aspx" but i dont want this solution and use
> > > httpcontext.Rewritepath() method.
> > > what i am intrested is href should be "abc.com/login.aspx" but afer
> > > clicking on link and on post back Browser bar should display
> > > "abc.com/admin/login.aspx" or only "abc.com", i want change values from
> > > browser bar.
> > > i hope you understand this problem i am doing this asp.net C#.
>
> > The only way to get /admin/login.aspx to show up in the browser's URL/
> > Address Bar is to either send a href=/admin/login.aspx or send a 302
> > Redirection and make the Browser actually go to /admin/login.aspx .
>
> > In other words, you're going to have to put something at /admin/
> > login.aspx to handle the request, or do the rewriting stuff.
>
> > Personally, I see no reason in changing the URL. Who cares what it
> > looks like as long as the correct web page shows up. It's not as if
> > you expect any random user to successfully copy/paste that URL and
> > automagically login or do some admin task -- that would be a failure
> > in your authentication system.
>
> > //David
> >http://w3-4u.blogspot.com
> >http://blogs.msdn.com/David.Wang
> > //- Hide quoted text -
>
> - Show quoted text -
date: Mon, 12 May 2008 10:09:16 -0700 (PDT)
author: David Wang
Re: URL Redirection/Rewritting/IE browser Bar Changin values
thanks for your reply, i will search on that how to do that using C# or
asp.net,if you have such info plz forward me as well.
"David Wang" wrote:
> URL Rewriting like HttpContext.RewritePath() only does the
> modification server-side, and only within ASP.Net (unless it calls
> IIS's HSE_REQ_EXEC_URL underneath the scenes, which I haven't observed
> it to do). Thus, the browser client-side will *never* see that appear
> in the browser bar.
>
> How to make your desired URL show up in the browser's URL/Address Bar
> requires the browser to actually request the URL -- either via an HREF
> link the user/script clicks on, or via a 302 Redirection sent by the
> server in response to a prior request.
>
> You may want to double check what your PM claims. It does not match
> with what you observe, and it does not match any expected behavior of
> the web server/client.
>
>
> //David
> http://w3-4u.blogspot.com
> http://blogs.msdn.com/David.Wang
> //
>
>
>
>
> On May 12, 12:46 am, Tasleem arif
> wrote:
> > hi, yes i am using URL rewritting but it does not remove/replace the string
> > displayed at browser bar,pages are displayed correctaly, but my PM says it
> > should be like that.
> >
> >
> >
> > "David Wang" wrote:
> > > On May 10, 6:18 am, Tasleem arif
> > > wrote:
> > > > hi all, i have made asp.net application in C#. suppose my site adress is
> > > > abc.com
> > > > I have pages related to admin and user but there are no folder, there
> > > > are internal page links on my site, like login link, when login link is
> > > > clicked within site user is redirected to "abc.com/login.aspx" and this
> > > > appear as it is on Ie browser bar, what i want is it should
> > > > "abc.com/admin/login.aspx" or "abc.com" (change browser bar adress and use
> > > > httpcontext.rewritepath() method),
> > > > There more similar situations like this but that is simplest, i know
> > > > other solution of that instead of login.aspx, link href should be
> > > > "/admin/login.aspx" but i dont want this solution and use
> > > > httpcontext.Rewritepath() method.
> > > > what i am intrested is href should be "abc.com/login.aspx" but afer
> > > > clicking on link and on post back Browser bar should display
> > > > "abc.com/admin/login.aspx" or only "abc.com", i want change values from
> > > > browser bar.
> > > > i hope you understand this problem i am doing this asp.net C#.
> >
> > > The only way to get /admin/login.aspx to show up in the browser's URL/
> > > Address Bar is to either send a href=/admin/login.aspx or send a 302
> > > Redirection and make the Browser actually go to /admin/login.aspx .
> >
> > > In other words, you're going to have to put something at /admin/
> > > login.aspx to handle the request, or do the rewriting stuff.
> >
> > > Personally, I see no reason in changing the URL. Who cares what it
> > > looks like as long as the correct web page shows up. It's not as if
> > > you expect any random user to successfully copy/paste that URL and
> > > automagically login or do some admin task -- that would be a failure
> > > in your authentication system.
> >
> > > //David
> > >http://w3-4u.blogspot.com
> > >http://blogs.msdn.com/David.Wang
> > > //- Hide quoted text -
> >
> > - Show quoted text -
>
>
date: Tue, 13 May 2008 04:46:01 -0700
author: Tasleem arif
Re: URL Redirection/Rewritting/IE browser Bar Changin values
URL Rewriters can often do redirection, too.
IIRF does redirection, which would change the address in the browser bar.
www.codeplex.com/IIRF
"Tasleem arif" wrote:
> thanks for your reply, i will search on that how to do that using C# or
> asp.net,if you have such info plz forward me as well.
>
> "David Wang" wrote:
>
> > URL Rewriting like HttpContext.RewritePath() only does the
> > modification server-side, and only within ASP.Net (unless it calls
> > IIS's HSE_REQ_EXEC_URL underneath the scenes, which I haven't observed
> > it to do). Thus, the browser client-side will *never* see that appear
> > in the browser bar.
> >
> > How to make your desired URL show up in the browser's URL/Address Bar
> > requires the browser to actually request the URL -- either via an HREF
> > link the user/script clicks on, or via a 302 Redirection sent by the
> > server in response to a prior request.
> >
> > You may want to double check what your PM claims. It does not match
> > with what you observe, and it does not match any expected behavior of
> > the web server/client.
> >
> >
> > //David
> > http://w3-4u.blogspot.com
> > http://blogs.msdn.com/David.Wang
> > //
> >
> >
> >
> >
> > On May 12, 12:46 am, Tasleem arif
> > wrote:
> > > hi, yes i am using URL rewritting but it does not remove/replace the string
> > > displayed at browser bar,pages are displayed correctaly, but my PM says it
> > > should be like that.
> > >
> > >
> > >
> > > "David Wang" wrote:
> > > > On May 10, 6:18 am, Tasleem arif
> > > > wrote:
> > > > > hi all, i have made asp.net application in C#. suppose my site adress is
> > > > > abc.com
> > > > > I have pages related to admin and user but there are no folder, there
> > > > > are internal page links on my site, like login link, when login link is
> > > > > clicked within site user is redirected to "abc.com/login.aspx" and this
> > > > > appear as it is on Ie browser bar, what i want is it should
> > > > > "abc.com/admin/login.aspx" or "abc.com" (change browser bar adress and use
> > > > > httpcontext.rewritepath() method),
> > > > > There more similar situations like this but that is simplest, i know
> > > > > other solution of that instead of login.aspx, link href should be
> > > > > "/admin/login.aspx" but i dont want this solution and use
> > > > > httpcontext.Rewritepath() method.
> > > > > what i am intrested is href should be "abc.com/login.aspx" but afer
> > > > > clicking on link and on post back Browser bar should display
> > > > > "abc.com/admin/login.aspx" or only "abc.com", i want change values from
> > > > > browser bar.
> > > > > i hope you understand this problem i am doing this asp.net C#.
> > >
> > > > The only way to get /admin/login.aspx to show up in the browser's URL/
> > > > Address Bar is to either send a href=/admin/login.aspx or send a 302
> > > > Redirection and make the Browser actually go to /admin/login.aspx .
> > >
> > > > In other words, you're going to have to put something at /admin/
> > > > login.aspx to handle the request, or do the rewriting stuff.
> > >
> > > > Personally, I see no reason in changing the URL. Who cares what it
> > > > looks like as long as the correct web page shows up. It's not as if
> > > > you expect any random user to successfully copy/paste that URL and
> > > > automagically login or do some admin task -- that would be a failure
> > > > in your authentication system.
> > >
> > > > //David
> > > >http://w3-4u.blogspot.com
> > > >http://blogs.msdn.com/David.Wang
> > > > //- Hide quoted text -
> > >
> > > - Show quoted text -
> >
> >
date: Sat, 14 Jun 2008 18:30:00 -0700
author: Cheeso
|
|