We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 39025
    • 21 Posts
    csatterwhite Reply #1, 12 years ago
    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.]
      • 3749
      • 24,544 Posts
      Try changing to this:
       RewriteBase /

        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 39025
        • 21 Posts
        csatterwhite Reply #3, 12 years ago
        Thanks BobRay, I tried that before posting to no luck.
          • 39025
          • 21 Posts
          csatterwhite Reply #4, 12 years ago
          Sorry to bump this up guys but I need help if possible? Has no one had these issues before?
          • I'm seeing it, but I haven't figured out how to fix it yet.

            There might be some help in this thread http://forums.modx.com/thread/?thread=73312#dis-post-410056, but I haven't applied it yet. I was going to do that today, but when I tried to log in I ended up locked out of the manager for about 4 hours due to captcha apparently regenerating entries in db tables, and now the kids are home from school and I can't think...

            I was secretly hoping you'd get an answer so I could just use your solution :~}
              Frogabog- MODX Websites in Portland Oregon
              "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
              Having server issues? These guys have MODX Hosting perfected - SkyToaster
              • 39025
              • 21 Posts
              csatterwhite Reply #6, 12 years ago
              I just ended up creating separate hosting account for each and moved them all over, didn't have time to wait for resolution. Easier in the end I guess. Thanks.