This is a discussion on Conditional RewriteBase within the Apache Web Server forums, part of the Web Server and Related Forums category; Here's one for you all... I have a situation where I need to define the RewriteBase based on what ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Here's one for you all...
I have a situation where I need to define the RewriteBase based on what the %{HTTP_HOST} value is. For instance, if I have a request for http://www.example.com I don't need to even set the RewriteBase. However, if I get a request for http://ssl.exmaple.com I need to set the RewriteBase to /ssl_dir Unfortunately, I have no control over the server at all, and am limited to using the .htaccess file. Basically, they are two different machines with the same set of files set as DOCUMENT_ROOT (most likely one is an NFS mount or something). -- Justin Koivisto - spam@koivi.com http://www.koivi.com |