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

  • Home
  • SEARCH
  • 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 6982305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:16:13+00:00 2026-05-27T18:16:13+00:00

I develop websites on my local webserver, the develop server. Whenever development is finished

  • 0

I develop websites on my local webserver, the develop server. Whenever development is finished I transfer the website to it’s live server. For the develop and the local server some different .htaccess settings are needed, for instance:

php_value include_path ".:/Localserver/global/stuff_develop/"
php_value include_path ".:/Liveserver/global/stuff_live/"

I would like to have some sort of IF statement in my htaccess that enables it to use the right include_path based on the server it sits on. This makes it possible to transfer the .htaccess file without having to change it to facilitate for the server it is on. Is this possible, and if yes, how would I do this?

I already tried playing around with SetEnvIf which sets a _SERVER variable “local” to value “1” when we’re on the local server. Could this be used in htaccess itself for this purpose?

Thanks in advance!

  • 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-27T18:16:14+00:00Added an answer on May 27, 2026 at 6:16 pm

    Have you tried solving this in PHP using ini_set(‘include_path’, …) ?

    E.g. if a page script resides in “/Localserver/site1/pages” resp. in “/Liveserver/site3/pages” something like

    $basepath=dirname(dirname(__FILE__));
    switch ($basepath) {
        case ('/Localserver'): ini_set('include_path',...) ; break;
        case ('/Liveserver'): ini_set('include_path',...) ; break;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I helped develop a website for a local non-profit. I have asked for feedback
I have a local development webserver set up using Win7 and IIS7. I often
I have some Django websites and I want to place them on the webserver
I use phpstorm to develop websites, but for some reason breakpoints aren't synchronized. Here
I've been developing a website, but I develop on my local machine first. I
My friend uses Visual Studio to develop websites in ASP.NET. She only uses the
Typically I develop my websites on trunk, then merge changes to a testing branch
I develop asp.net websites, and I read about cloud computing, windows azure, etc. But
Aside from Episerver.com What other websites do people who develop using EPiServer use as
At my company, we develop our ASP.NET applications as websites and often just work

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.