Response.Headers and URLs

D

Dave Anderson

Mike said:
Is there a way to add a header to a page that will change what
text the browser displays in the address field?

Yes. Send a 302 Status header and a new URI. In ASP, this is done with
Response.Redirect().


For example, say I point my browser to
http://www.domain.com/request.asp?a=1&b=2.

I would like IIS to send back the content generated by the page
request.asp, but would like the address is in the browser to read
"http://www.domain.com/request/index.asp"

Is there any possible way to do this? It seems like this should be
possible.

Of course it is possible, but why would you want to do this?



--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
 
A

Adrienne Boswell

Yes. Send a 302 Status header and a new URI. In ASP, this is done with
Response.Redirect().




Of course it is possible, but why would you want to do this?

To make a friendlier URI for users, search engines, etc.

To the OP, Google for ASP mod rewrite.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,142
Messages
2,570,820
Members
47,367
Latest member
mahdiharooniir

Latest Threads

Top