right up front, i don’t do much with server setup htaccess type stuff... that being said, here is what i’d like to do.
i am working on a new site for someone whose /public_html/ is quite messy (all static stuff), and i’d like to create my modx site under /public_html/modx/, and then when it’s approved to launch, i’d like to have all www web traffic pointed into that /modx/ directory (without "modx" appearing in the url of course). can this be done via .htaccess?
what’s the best method? i know while developing i’ll have this:
RewriteEngine On
RewriteBase /modx/
in the /public_html/modx/.htaccess, but when it’s ready to launch is there something i can put in an .htaccess file in /public_html/ to point that to the /modx/ directory, but not have "modx" appear in the url?
i had tried something like this on a previous project:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?domain_name_here\.com$
RewriteCond %{REQUEST_URI} !^/modxrevo/
RewriteRule ^(.*)$ modxrevo/$1 [L]
which put me into the correct subdirectory, but i still have "modxrevo" in the url, unfortunately i had to bail on this because the site had to be launched "yesterday", so i literally couldn’t spend a minute more on it, and ended up just putting everything in /public_html/.
any insight would be greatly appreciated! thanks!