Jim,
Using mod_alias or mod_rewrite with [R] is functionally equivalent, yes.
The former is simpler and easier to maintain, of course.
Note that you can use RedirectMatch if you need PCRE support and/or
captured expressions.
On 12/06/19 05:42 PM, Jim Weill wrote:
> So just to make sure I have th
So just to make sure I have this correct: the main production server has a
couple pages of rewrites for old URLs and home pages that moved servers or
changed path. And changing the baseURL with a Redirect directive in a
vhost instead of mod_rewrite will not break any of that?
jim
On Tue, Jun 11
Agree, much better than all that rewrite gymnastics.
IC
On Wed, Jun 12, 2019, 6:30 AM Frank wrote:
> No, I assure you, ,mod_rewrite is not needed here.
>
> To enforce a canonical hostname, use the Redirect directive and separate
> vhost. To have all requests handled by a php routing script, use
No, I assure you, ,mod_rewrite is not needed here.
To enforce a canonical hostname, use the Redirect directive and separate
vhost. To have all requests handled by a php routing script, use
FallbackResource /path/to/file.php
Lastly, to redirect to https://, use Redirect from a :80 vhost.
On 11/06
The sites I am trying to model are drupal-based. We aren't dealing with
plain static HTML or PHP sites. We have the main server, which this test
server is trying to mirror, and a secondary project server which exists to
give project people limited root access to update their own code. The
second
You are also grossly abusing mod_rewrite for this. It isn't needed at all.
Use FallbackResource, Redirect, and separate vhosts, as Igor mentioned.
On 11/06/19 01:33 AM, Igor Cicimov wrote:
> Since you already have two separate domains why not use virtual hosts
> each with it's own document root?
Since you already have two separate domains why not use virtual hosts each
with it's own document root?
IC
On Tue, Jun 11, 2019, 9:18 AM Jim Weill wrote:
> We have a test server, with test sites that are in two different branches
> of development, but essentially the same base content. They li
We have a test server, with test sites that are in two different branches
of development, but essentially the same base content. They live at
/x/y/z/testsite and /x/y/z/test-site. We have other sites such as wikis
and one-offs which need to stay online on our production server, and I have
been te