Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 943621
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T22:27:51+00:00 2026-05-15T22:27:51+00:00

Ok, here is my issue and the reason I want to split up the

  • 0

Ok, here is my issue and the reason I want to split up the .htaccess file into two parts:

I have a local developing machine with windows as well as a test and a productive system running on the same machine on openSUSE. That causes me some trouble:

  • I use a htaccess auth mechanism which need an absolute AuthUserFile path
  • I use a rewrite condition for non www subdomains on the productive system
  • I use several caching techniques on the productive system I don’t want to use on my local system
  • I have some kind of IP blacklist I update on my productive system

The whole system including the .htaccess is stored and updated with a SVN repository. So each change for the productive system I have to make after an update. So every new update is a merge which sometimes causes a conflict. If I revert a version of the .htaccess because of some errors in the .htaccess it causes in a lost of all the custom changes.

So my question is: Can I split a .htaccess file in several parts and include them into each other. or is it possible to have another kind of apache config file (like a httpd.conf). I also use Plesk to manage the domains and as I am not a linux expert I would prefer a solution without changing the Plesk configuration files of the domain.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T22:27:52+00:00Added an answer on May 15, 2026 at 10:27 pm

    If you have complete control over both systems, use the Apache httpd.conf file. It can handle everything that .htaccess can and more, and is preferred above .htaccess for speed and security reasons.

    If for some reason you need to divide the settings over multiple files (eg. some settings are common among the systems and should be under version control, others not), you can use include directives in the httpd.conf file like S.Lott says.

    If you don’t have control over httpd.conf in both systems, I don’t know whether include directives are supported there; however you could try to use conditional blocks in your htaccess file as explained here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a weird issue reading a .csv file using c#. Here are the
Here is the following issue: If I am developing on a 32 bit machine
Having an issue here that I have tried everything I can think of but
I have a rather annoying issue here I can't get my CheckBox CheckedChange event
I have a curious issue here In my ejbCreate() method from where i insert
Im having a weird issue here; The following .htaccess works but now (after changing
I'm have a weird issue here. I have a UITableView using custom UITableViewCells. Everything
All, I am running into an issue using JTextArea and JScrollPane. For some reason
I have a bit of a ridiculous issue here and I must be missing
Good morning all. I have an issue with a query. I want to select

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.