|
Home > Archive > Apache Server configuration support > January 2007 > Includes in .htaccess files
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Includes in .htaccess files
|
|
| Hermann 2007-01-20, 7:26 pm |
| Is there any way to include another file in a .htaccess file??
something like the "include" directive that is available only for the
server config file.
| |
| Davide Bianchi 2007-01-21, 7:26 am |
| On 2007-01-20, Hermann <Hermann.Richter@gmail.com> wrote:
> Is there any way to include another file in a .htaccess file??
Not as far as I know. Why you want to do such thing?
Davide
--
The Microsoft Motto: "We're the leaders, wait for us!"
| |
| Hermann 2007-01-21, 7:23 pm |
| I need to maintain different sets of configuration directives
independently from each other.
Some configuration are specific to a version of the software (the
system I'm developing), some are dependent on the location in the
directory tree and some others are dependent on the developing stage
(alpha, beta, RC, etc..).
So, no mather which version of the system I put anywere, It would have
the correct configuration for that version and for that directory and
for that stage.
But apache doesn't have any way to do this so I guess I will have to
put everything in one .htaccess file and manage the changes by hand.
Too bad.
| |
| Davide Bianchi 2007-01-22, 7:21 am |
| On 2007-01-21, Hermann <Hermann.Richter@gmail.com> wrote:
> I need to maintain different sets of configuration directives
> independently from each other.
<zap>
> But apache doesn't have any way to do this so I guess I will have to
> put everything in one .htaccess file and manage the changes by hand.
> Too bad.
An alternative would be to 'compile' the .htaccess from 'sources',
using a precompiler for example or a simple script to 'build' the
correct htaccess every time. I agree that is not as easy as put
an 'include' in there.
D.
--
Fear leads to anger. Anger leads to hate. Hate leads to using Windows
for mission-critical applications.
-- What Yoda *meant* to say
|
|
|
|
|