logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: multiple .htaccess files?
Author
Doug22



Joined: 02 Jun 2013
Posts: 57
Location: Houston TX

PostPosted: Sat 12 Mar '16 20:41    Post subject: multiple .htaccess files? Reply with quote

I'd like to have multiple .htaccess files for a given site. That is, I have a .htaccess file that I'd like to divide in two pieces, kept in the same folder, that are treated as if they were one.

My .htaccess file has a lot of stuff that I don't want to change, and other parts that are more fluid. I'd like to just work routinely on the second one.

How do I do this? Is it simply a matter of identifying the different files as .htaccess files in http.conf as, for example

Code:
AccessFileName .htaccessA .htaccessB


That is, are these two files treated additively? As in .htaccess = htaccessA + .htaccessB?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Tue 15 Mar '16 19:11    Post subject: Re: multiple .htaccess files? Reply with quote

Doug22 wrote:

That is, are these two files treated additively? As in .htaccess = htaccessA + .htaccessB?


Yes!

But it makes your webserver slow(er).

see ... https://httpd.apache.org/docs/2.4/en/howto/htaccess.html#when
Back to top


Reply to topic   Topic: multiple .htaccess files? View previous topic :: View next topic
Post new topic   Forum Index -> Apache