We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22303 MODX Staff
    • 10,725 Posts
    Hmmm, now I understand that line you posted about "Uses ModRewrite..."

    Apparently, these alternate domains are being processed using Rewrite rules themselves, and this may be conflicting with our rewrite rules. Hmmmm. Thinking. Is there anyway you can see these rewrite rules, or ask mediatemple if they will share the rules they use to accomplish this?
      • 7030
      • 45 Posts
      Nice one Jason, I’ve been sitting here all day scratching my head about it. I sent a support email to mediatemple, let’s see what the outcome/solution is smiley thanks again.
        Smoking is one of the leading causes of statistics.
        • 7030
        • 45 Posts
        The support team at MediaTemple added this line onto the top of the .htaccess file sitting within the MODx directory:

        Options +FollowSymLinks


        Apparently this should fix the issue. But now, I get 500 server errors again! what a headache.

          Smoking is one of the leading causes of statistics.
          • 22303 MODX Staff
          • 10,725 Posts
          Can you share with me the content of your .htaccess file?
            • 7030
            • 45 Posts
            sure:

            Options +FollowSymLinks
            RewriteEngine On
            RewriteCond %{REQUEST_FILENAME} !-f
            RewriteCond %{REQUEST_FILENAME} !-d
            
            # If your MODx installation is in a subdirectory, change the following line to match the physical
            # path to the "root" of the site as follows:
            # RewriteRule ^(.*)$ /path/to/subdirectory/index.php?q=$1 [L,QSA]
            
            
            RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]


            It can’t be MODx, as I can get to the pages directly if I go the long way around:

            http://www.fazalkhan.co.uk/cromwellcare.com/index.html

            As you can see the page loads, but no CSS, however if you click on a link it all works! VERY strange...!


            Also (sorry to go back and forth here) - in case anyone has an issue with google maps key or api, a workaround to get it to work is to create a straightforward html page just to load a map and validate your key. Once you have done that, delete the html page, and google maps will behave with MODx smiley .
              Smoking is one of the leading causes of statistics.
              • 32241
              • 1,495 Posts
              Try adding
              <base href="http://www.fazalkhan.co.uk/" />


              Let see whether it solve the problem or not.
                Wendy Novianto
                [font=Verdana]PT DJAMOER Technology Media
                [font=Verdana]Xituz Media
                • 7030
                • 45 Posts
                That doesn’t work I’m afraid, it’s definately an Apache routing issue. The problem is I don’t know Apache commands!

                  Smoking is one of the leading causes of statistics.
                  • 32241
                  • 1,495 Posts
                  Ehm...
                  How do you use the cromwellcare.com to be directed?
                  I mean it’s under one installation with fazalkhan.com right? So how are you able to get cromwellcare.com to be directed to fazalkhan.com/cromwellcare.com.html? The cromwellare.com.html is a virtual html file created by MODx. Are you using my subsite hack or what are you using?

                  I think if you preovide n answer to this, we can better assist you smiley
                    Wendy Novianto
                    [font=Verdana]PT DJAMOER Technology Media
                    [font=Verdana]Xituz Media
                    • 7030
                    • 45 Posts
                    Hi Wendy,

                    It’s simply a website that sits within my hosting space with the folks at MediaTemple.com.

                    I have what is called an "alternate domain" http://kb.mediatemple.net/article.asp?article=10024&p=3, this allows me to serve up to 5 websites within my hosting space with the folks at MediaTemple.com. Hope this clarifies things.
                      Smoking is one of the leading causes of statistics.
                      • 32241
                      • 1,495 Posts
                      Ok, that’s what I expected.

                      I’m not to for sure though, whether this thing will work on your case. I did play with htacess as well, when I’m trying to achieve subsites capability with MODx with one installation.

                      It seems to me that all the external files can’t be access by your browser, due to this uncommon setup for your htaccess system. I’m assuming when they create this so called alternate domain, they didn’t expect that alternate domain to be used on a virtual directory that are handled by another mod_rewrite, which is in this case, it will be MODx mod_rewrite that does the redirecting to the index.php, and index php responsible in translating the virtual directory.

                      Is it possible for you to host the domain as regular domain, but let it directed to the root install of your MODx? You can use my core hack, to enable several domain being hosted on one modx installation. This one of the solution that I can offer to you. All MODx functionality will works just fine, so far I haven’t encounter any problem yet.

                      Another solution would be to let the browser search for the files using absolute address. But you told me that the <base href="" /> does not work. I’m assuming you use your http://www.fazalkhan.co.uk/ domain in it, not the cromwellcare.com, but it’s still doesn’t work.

                      So one other solution will be to try creating the real subfolder on your too folder with your domain name, and copy all necessary file for your template. I know this solution might be cause the front page to be directed to the subdomain file listing or whatever startup file that this thing going to fo. But I’m assuming that the request all being made relative to this subfolder, so if we are able to allow the real files located to where it’s suppose to be in alternate domain, then it’s sppose to work.

                      Hope this can help you troubleshoot the problem.
                      It’s just my several cents wink (Trying to make a joke here tongue)
                        Wendy Novianto
                        [font=Verdana]PT DJAMOER Technology Media
                        [font=Verdana]Xituz Media