Conditional RewriteBase

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 ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-16-2004
Justin Koivisto
 
Posts: n/a
Default Conditional RewriteBase

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
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:19 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0