Hi!
I have MODX installed in a subfolder called beta, and I'm using a .htaccess file to point my domain to the beta folder.
That part works great. When i type in mydomain.com it points to mydomain.com/beta but still shows mydomain.com in the address bar. Awesome.
Friendly URLS work as well.
My only issue is that when I actually type in mydomain.com/beta it does not show up as mydomain.com. It stays the way it is.
Can anyone help me figure out how to totally remove the /beta folder from the address bar? I have been googling my butt off ,and I can't seem to find an answer.
Here is my code in the root folder. I got rid of the .htaccess file in my beta folder hoping that would help, but it didn't.
Thanks for any help!
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^(www\.)?mydomain\.com$
RewriteCond %{REQUEST_URI} !^/beta
RewriteRule ^(.*)$ beta/$1
# Rewrite www.domain.com -> domain.com -- used with SEO Strict URLs plugin
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^mydomain\.com [NC]
RewriteRule (.*)
http://mydomain.com/$1 [R=301,L]
# The Friendly URLs part
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]