Have you thought about doing this with per-url redirects? I found something promising here: http://www.phpin24.co.za/apache/apache-change-documentroot-for-a-specific-url/
It seems to boil down to this (copied from the linked page):
<VirtualHost *:80>
ServerName www.phpin24.co.za
DocumentRoot /var/www/html/phpin24
AliasMatch ^/enquire-now/thankyou/(.*) /var/www/html/other-code/app/webroot/$1
AliasMatch ^/enquire-now/(.*) /var/www/html/other-code/app/webroot/$1
ErrorLog /var/log/httpd/phpin24/phpin24_error_log
CustomLog /var/log/httpd/phpin24/phpin24_access_log combined
<Directory /var/www/html/phpin24/>
Options FollowSymlinks
AllowOverride All
FileETag none
</Directory>
</VirtualHost>
Related Posts:
- Automatically enable custom theme, plugins and default content on installation?
- Create a custom WP install with plugins, theme etc already installed?
- One WordPress install serving multiple virtual hosts
- How to import WP XML file automatically on installation?
- Programatically Creating Initial WordPress Site
- How to use if condition to change $table_prefix in wp_config.php
- Moving site made easier
- Is it ok to have one wordpress installation for server.com and www.server.com?
- Homebrew install specific version of formula?
- Conda version pip install -r requirements.txt –target ./lib
- Conda version pip install -r requirements.txt –target ./lib
- Conda version pip install -r requirements.txt –target ./lib
- How can I create an MSI setup?
- extconf failed, exit code 1 error when installing [Ruby on Rails] 5 on OS X Yosemite 10.10.5
- Initialization Script for “Standard” Aspects of a WordPress Website?
- Add additional Network constants to wp-config.php dynamically
- Populate content on install
- Are there any downsides to installing WordPress on Windows versus Linux?
- Install and configure WordPress while old site is still active
- How do I setup a WordPress site on a server before the domain is ready?
- How to Check the Directory Where WordPress is Installed?
- After moving wordpress some files still point to old directory
- URL to download latest version of WP for other languages than English
- Custom WordPress Installation
- Shortest possible shell script to install WordPress on Nginx server?
- Repeatable configuration package
- Cloning and syncing a WordPress website
- Is it possible to install WordPress within WordPress installation?
- WordPress package configuration in Ubuntu Server?
- Can WordPress be installed at the root level, if a homepage called index.php already exists?
- Distributing and packaging plugins
- Updating Widget options in custom install.php
- InfiniteWP installation fails – CONFIGURABLE MAX EXECUTION TIME DISABLED
- Multiple sites/domains on one database
- Unable to install wordpress theme without ftp user & password
- Sharing one WordPress installation between several “sites”?
- Backup blog posts only
- Reinstall WordPress from zero
- WordPress On subfolder
- Importing wordpress. xml file on new installation
- How to check what plugins used to be on a WordPress installation?
- Can my site use two different WordPress installs for different pages?
- Can I clone WP to another directory on the same server?
- How to download WordPress 4.2.0
- How to work locally on a copy of my wordpress?
- When I try to install VersionPress, it tells me, “The package could not be installed. No valid plugins were found.”
- Reset generated wp-config.php with wp-cli
- Missing wp-load.php on new install
- Use new domain name on previously installed files of wordpress
- How do I install more than one WordPress blog on EC2?
- Installing wordpress on Parallels plesk 9.5.3
- Multi site clarification
- WordPress in subfolder dont work
- wp-cli fails on installing to subdomain
- How to edit an existing wordpress.org site
- Login/Logout Session Sharing – Multiple WordPress Installations
- Installing WordPress in a subdirectory
- Installed WordPress Location
- how to return the wordpress path to the new site
- WordPress Multisite – Create Default Post and New Category On New Site Install
- Version 3.04 or 3.5?
- Moving WordPress Site from MAMP to cPanel – How?
- Basic installation questions
- muliple wordpress multisite installs on the same sever
- Instant install of wordpress
- Moving WordPress from Root to a subfolder
- WordPress Install Issue, Receive Warnings But Successful Install
- WSOD right after install
- How to install WP alongside my existing site at a sub-directory (bradydjohnson.com/blog)?
- My WordPress install is not loading the admin styles
- What are the pros & cons of a new wordpress installation vs fixing one that already exists?
- I moved my WordPress site to the main directory and now I can’t access my admin
- WordPress Skeleton installation
- Things to take care before installing wordpress Manual v/s Softaculous
- Why is WordPress’ installer “phoning home” during the install script?
- Powering only a subfolder with WordPress on a LAMP stack with an nginx reverse proxy
- Site blocked by WebSense on fresh WP Install
- WordPress 3.1 Install Error
- Disable creation of default content during installation
- Is it bad practice to install WordPress by cloning from the official GitHub repo?
- How to recreate a WordPress site
- Fresh installation of WordPress on CentOS produces critical error during installation
- More than 5 time my Website show this issue
- Installation failed: Destination folder already exists
- Installing WordPress to root directory with existing static site. Concerns?
- First time installing WordPress. Cant Access
- What is the “Quick and Dirty” way to transfer WordPress installation?
- Upload a website on WAMP and modify it
- How to update WP-CLI on Windows via Composer?
- CPU spikes to 100% site doesn’t load, VPS crashes after moving site
- Have non-wordpress page as root (and blog elsewhere)
- WordPress Installation
- WordPress installation self deleted in server restart. SQL Tables gone too!
- Doubts about how to migrate WordPress from local to online server using Search and Replace Tool script
- Trying to increase WP Memory Limit
- Are two installations of WordPress on the same domain (no subdomains) ok?
- I can access to my wordpress page at work and via cellphone, but when I get home, I can’t access to the website
- Multiple independent wordpress installs – 1 dedicated server – individual dedicated domain for each install. What is the best way to achieve this?
- WordPress desktop app shows blank screen
- Host Php script from codecanyon on wordpress