I'm sorry... I've searched everywhere... maybe I'm just a moron... I know you can get the request url with %{REQUEST_URI} in mod_rewrite, but how do you get the entire URI? I need to test if somebody came in on https://www.mysharedhost.com/mysite or http://www.mysite.com
How could I Do that??
whole request in mod_rewrite
Moderator: General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: whole request in mod_rewrite
You don't read that.The Ninja Space Goat wrote:I'm sorry... I've searched everywhere... maybe I'm just a moron... I know you can get the request url with %{REQUEST_URI} in mod_rewrite, but how do you get the entire URI? I need to test if somebody came in on https://www.mysharedhost.com/mysite or http://www.mysite.com
How could I Do that??
Use "RewriteCond %{HTTPS} !=On" if I remember correctly. For some reason we needed to hack our apache config to do "setenv HTTPS 'On'" for the directories we use HTTPS on, although I think that was just for Trac since we run it over CGI.
I have a site that people will normally come to by way of http://store.mysite.com/page/PAGECODE which rewrites to http://store.mysite.com/merchant2/merch ... re_Code=BS
When they come to the store via the shard secure server... they come in by way of https://www169.sharedsecureserver.com/page/PAGECODE which is supposed to be rewritten to https://www169.sharedsecureserver.com/m ... re_Code=BS
I can't get the secure part to work... I've tried a number of different things... how should I be tackling this thing?
When they come to the store via the shard secure server... they come in by way of https://www169.sharedsecureserver.com/page/PAGECODE which is supposed to be rewritten to https://www169.sharedsecureserver.com/m ... re_Code=BS
I can't get the secure part to work... I've tried a number of different things... how should I be tackling this thing?