Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Capture Url & redirect 1

Status
Not open for further replies.

thendal

Programmer
Aug 23, 2000
284
Hi all!

I am having site which is secured. But people can make it unsecured when they change the url to
The server has also 80 port opened for some other application running in the same machine needs port 80 ..as it can't work on secure site. My question

if a user types i have to redirect to ...

what will be best option to solve this problem...any insight will be much appreciated.

Thank you.
 
Thanks paul, I am looking how to capture the url of the webpage that is been used.

I have to see whether its a htttp request or https request..
is there a environmental variable to find this ....?

if its http request then i have to redirect as https request.

Forcing the user to use only https request.

Thank you.
 
I personally wouldn't use the same script in the same location.

I think what you're looking for is $ENV{'REQUEST_URI'}, also to see what page referred it, $ENV{'HTTP_REFERER'}

HTH
--Paul

It's important in life to always strike a happy medium, so if you see someone with a crystal ball, and a smile on their face ... smack the fecker
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top