You are doing it right when using separate directory you cannot have root directory for all 3 web sites Apache is not that smart but If you have some router function or front controller than it is another case but still you have to use separate directory for separate website.
Related Posts:
- File and directory permissions
- Place static HTML files in path below WordPress page
- .htaccess for wordpress inside another wordpress install
- Isolating WordPress to a subfolder
- Permalinks not working on second wordpress installed in a subdirect
- Move wordpress to folder without changing urls
- Change wp-content without changing the name of the folder
- How to restrict access to wp-content, wp-includes and all sub-folders
- Redirect main domain to subdirectory
- Exclude subfolder from WP-redirect works with html but not php files
- Can’t Access Subdirectory
- Fixing custom 404 pages broken by WordPress in a subdirectory
- WP install in sub-dir white screen
- Drawbacks to using Options -Indexes
- WordPress installed in root, need second in subdirectory with different domain
- htaccess, site and staging in subdirectories
- External content won’t load in iframe in Safari
- Disable directory browsing of uploads folder
- I have a page using a pretty url and a mod_rewrite rule matching it. I expected it to give an error but it’s working. Why?
- Creating a copy of a website in a subdirectory, wp-admin redirect problem
- Access sub-domain when root public_html is protected with .htaccess password
- Cannot access subdirectory subpages
- How to execute WordPress as though it is in the root folder while it is installed in a subdirectory?
- WP Codex answer incomplete? Put WP in subdirectory. .htaccess change required
- Install second wordpress in root subfolder, Error 404
- Remove subdirectory from links
- How to properly give WordPress its own directory
- How to direct users to a subcatalog
- Installing wordpress on subdirectory 2 levels down
- Cannot Override WordPress 404 for a Sub-Directory
- htaccess mod_rewrite not working
- .htaccess and virtual host configuration for WP in its own directory
- Giving WordPress it’s own directory and using .htaccess Directory Index
- Permalink Issues by Installing WordPress in Subdirectory / Subfolder
- WordPress + Magento .htaccess ReWriteRule Issue (www vs. non-www)
- index.php not loading in main folder of wordpress
- Admin-Ajax.php, SSL, Non-SSL
- WordPress site displaying 404 for any page apart from index
- How to avoid wordpress permalink rules to inherit in a sub-folder
- Cant block wordpress readme files
- WordPress keeps deleting .htaccess file
- Prevent users from browsing through the media galleries
- How to modify the .htaccess to force ssl on login and admin pages
- WordPress URL/Folder ReWrite using Htaccess
- .htaccess redirects no longer work
- Server crashed trying to restore wordpress multisite, images are not found pls help
- Create subdomain masking for each user in WordPress
- Redirect from different port to subdomain – htaccess
- WordPress Redirect 301 register page
- Only expose routes with prefix /wp-json on WordPress using Apache
- Hardening wordpress: blocking /includes with htaccess
- Install a Network under a mapped domain
- htaccess – RewriteRule without redirect not working
- Restrict uploaded files into a custom folder to logged in users by htaccess: looking for Nginx – not only Apache – solution
- Modify the .htaccess file
- blocking access to all post/tag URIs via htaccess
- sitemap contains weird links and does not contain my pages [closed]
- want to rewrite an URL in wordpress
- Giving to wordpress it’s own directory cause login loop
- how to redirect 301 my old search query string to wordpress search query string?
- Unable to access folders in same level as wordpress installation
- Admin Panel Slowdown After SSL Verification
- WordPress category with 404 error
- How to block access to files without modifying .htaccess or ngnix config? [closed]
- Allow REST API over HTTP, the rest of the site forced to HTTPS
- where to add redirection rewriterule in .htaccess file?
- Multisite Subdirectory with same domain subdomain
- Conflict with Force SSL and Rewrite Rules
- create virtual subdomains for a bunch of urls on a site via .htaccess
- wordpress blog displaying blank pages [closed]
- Relative links stop working after moving wordpress site from hosting to localhost
- How to rewrite 404 to home page using htaccess?
- How to fix .htaccess corrupted
- “Oops.” error on an html file directly uploaded to a subdirectory of my WordPress site
- How do I reset a rewrite?
- VServer/Rootserver/Shared Hosting: Multiple WordPress installations each having their unique domain?
- Sub domain URL slash / missing after domain and before Post & page slug
- Problem with WordPress permalinks
- Force a 403 response to xml file in WordPress
- I need to make one folder private
- How to use slug with subdomain?
- After moving WordPress to its own directory, login doesn’t work
- Force HTTPS for mapped domain pointing to wordpress domain
- How can I restrict access, by IP, to the `wp-admin` folder/Dashboard?
- Reversing domain ‘sharding’ with htaccess
- After changing permalink, getting 404 for one particular category
- WordPress Intercepting Requests To A File In Public HTML
- Htaccess remove dates from root site but not from subdomain
- .htaccess home configuration
- adding a rewrite rule in wordpress functions file
- Multisite permalinks for subfolder wordpress installation
- Missing visual editor after placing a redirect rule into the .htaccess file
- Redirect not working
- Permanently Redirect WordPress Subfolder Blog to Subdomain on Another Server
- WordPress site not redirecting properly
- .htaccess for Subdomain and Subfolder w/SSL
- Why my wp site always redirecting to the old website path..?
- Hiding wp-config.php via .htaccess on an install installed in another directory?
- How To Add CSP frame ancestors in WordPress Website? [closed]
- How do I modify each instance of setcookie?