Re: [users@httpd] mod_rewrite question on directory

2019-06-13 Thread Frank
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

Re: [users@httpd] mod_rewrite question on directory

2019-06-12 Thread Jim Weill
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

Re: [users@httpd] mod_rewrite question on directory

2019-06-11 Thread Igor Cicimov
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

Re: [users@httpd] mod_rewrite question on directory

2019-06-11 Thread Frank
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

Re: [users@httpd] mod_rewrite question on directory

2019-06-11 Thread Jim Weill
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

Re: [users@httpd] mod_rewrite question on directory

2019-06-11 Thread Frank
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?

Re: [users@httpd] mod_rewrite question on directory

2019-06-10 Thread Igor Cicimov
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

[users@httpd] mod_rewrite question on directory

2019-06-10 Thread Jim Weill
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