I've got two contexts, web and foundation for now.
web is the main site context, in mls2/dev5, /dev5 == root in /xampp/htdocs
created another folder, /foundation as a sub-folder of /dev5
goal is to have mls2/foundation be a new site
context works correctly but .htaccess does not...
using this as instructions:
http://www.belafontecode.com/modx-revolution-hosting-multiple-domains/
technique #2 to put foundation's stuff into separate folder
have been experimenting with .htaccess in root aka /dev5 folder but cannot figure out how to translate belafonte's example code into local site rather than www etc.
can anyone help??
relevant .htaccess that I know of:
RewriteEngine On
RewriteBase /dev5
# 1/9/11 MAP TLD TO CUSTOM SUBDIRECTORY
RewriteCond $1 !^dev5/
RewriteCond %{HTTP_HOST} ^mls2/dev5
RewriteRule (.*) /dev5/$1 [L]
# The Friendly URLs part
# 1/9/12 added http_host mls2 part
RewriteCond %{HTTP_HOST} ^mls2
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
What am I doing wrong??
With all the above, mls2/dev5 works normally as it should...
But mls2/foundation does not display...
Thank you, Tom