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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

which variable captures the URL being requested

Status
Not open for further replies.

csgonan

MIS
May 2, 2007
118
US
I want to grab the URL that a user requested in the vhost section of httpd.conf and check if they are requesting the specific vhost site. I see REQUEST_URI is the portion after the site name, and I thought about setenvif referrer but that is not what site they entered.

I want to capture it and then use it in a mod_rewrite condition.

Thanks
 
I was playing around with another post I have on rewriting and I want to know if HTTP_HOST is the site being requested?

For example, if the user goes to in an htaccess file in DocumentRoot I was going to check if they had actually requested that vhost or just came there cause it was the only 443 site. So I was going to use HTTP_HOST in a RewriteCond statement.

Is that the variable that corresponds to the URL requested?

thanks
 
HTTP_HOST is the server responding to the request.

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
Thanks

What is the variable capturing the URL being requested please?

Christine
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top