OK guys here is the scenario, hopefully someone can help me.
We have a domain (development domain), ourdomain.com, subdirectories used for client sites like this:
ourdomain.com/ClientDomain.com
We installed modX revo 2.2 into sub directory for client domain. All good everything working fine. CLient is ready to go live. Inside godaddy we set up the real client domain and point it to:
ourdomain.com/ClientDomain.com
modx loads the first page fine at ClientDomain.com, but when you click on a link it goes back to ourdomain.com/ClientDomain.com
I'm sure it has something to do with rewrites, I just don't know what to do.
Any an all help is appreciated.
The htaccess:
RewriteEngine On
RewriteBase /ClientDomain.com/
# Rewrite www.domain.com -> domain.com -- used with SEO Strict URLs plugin
#RewriteCond %{HTTP_HOST} .
#RewriteCond %{HTTP_HOST} !^example-domain-please-change\.com [NC]
#RewriteRule (.*)
http://example-domain-please-change.com/$1 [R=301,L]
#
# or for the opposite domain.com -> www.domain.com use the following
# DO NOT USE BOTH
#
#RewriteCond %{HTTP_HOST} .
#RewriteCond %{HTTP_HOST} !^www\.example-domain-please-change\.com [NC]
#RewriteRule (.*)
http://www.example-domain-please-change.com/$1 [R=301,L]
# Rewrite secure requests properly to prevent SSL cert warnings, e.g. prevent
#
https://www.domain.com when your cert only allows
https://secure.domain.com
#RewriteCond %{SERVER_PORT} !^443
#RewriteRule (.*)
https://example-domain-please-change.com.com/$1 [R=301,L]
# The Friendly URLs part
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
[ed. note: csatterwhite last edited this post 12 years ago.]