We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12421
    • 19 Posts
    Hello all,

    I really need subsites for a new project and ask myself: has anyone tested the plugin with 0961p2? Still works? No manual changes necessary?

    Thanks for a short note if anyone has tested this.

    Regards,

    Henning
      Usually when things have come so far,
      people tend to disappear.

      MODx Revolution Multi-Domain Installation Tutorial | MODxCMS Webentwicklung Frankfurt Rhein-Main
      • 12421
      • 19 Posts
      O.K., after some testing I can confirm: works fine with my 0.9.6P2 install too. I used the latest zip on discussion page 7 dated 19th november 2007 from sal (thanks to her/him for that).

      I additionally did some file compare with winmerge between all the versions and can tell, that the original MODx-code around the hack did not change and the desired functionality therefore should be as stable as in the subsites v1.0 version.

      Have fun!
        Usually when things have come so far,
        people tend to disappear.

        MODx Revolution Multi-Domain Installation Tutorial | MODxCMS Webentwicklung Frankfurt Rhein-Main
        • 25969
        • 118 Posts
        Six months on, Subsites didn’t really work as well as I’d hoped but is almost there (with 0.9.7 on the horizon). The few issues I remember coming across based on the last time I worked with it were -

        • [~[*id*]~] is broken (or any path generated with this method) when in use with a Subsite managed "website"
        • Domains aren’t corrected especially when accessing documents not associated with a domain as a child document of a Subsite settings.
          • 1611
          • 591 Posts
          Hello, All.
          First of all, Thank you for a great job!
          Time spends, but 0.9.7 isn’t appearing.

          I need the multisites (subsites) functionality.
          Does anyone test this hack with modx 0.9.6.3?

          @sal Do you solve issues you claimed in last post in this thread?
            • 23098
            • 9 Posts
            I have 4 domains I plan to test it with but I’m a little slammed for time right now. I know 097 will help with this via Contexts but still not sure how to implement that.
              • 11954
              • 58 Posts
              Argh this is annoying because I feel I’m really close to getting this working. I uploaded all the files and created a subdomain which I pointed at the root folder and entered the following in the subdomain section of the config:
              it.high-rollercasinos.com
              but when I type in it.high-rollercasinos.com I get redirected to the frontpage of the site i.e www.high-rollercasinos.com. Do I need to alter something in the .htaccess to get this to work?
                • 12421
                • 19 Posts
                Mmmmh, I think since 0.9.6.3 the default MODx .htaccess includes a rewrite rule that always redirects either to the www. or the non-www subdomain for SEO reasons (google requested to decide for one or the other a while ago; a.f.a.i.c.r. for duplicate content issues).

                Of course this behaviour collides with the subsites hack, you have to think of a solution before the subsites modification can work.
                  Usually when things have come so far,
                  people tend to disappear.

                  MODx Revolution Multi-Domain Installation Tutorial | MODxCMS Webentwicklung Frankfurt Rhein-Main
                  • 25969
                  • 118 Posts
                  Quote from: hquadrat at Apr 22, 2009, 10:43 PM

                  Mmmmh, I think since 0.9.6.3 the default MODx .htaccess includes a rewrite rule that always redirects either to the www. or the non-www subdomain for SEO reasons (google requested to decide for one or the other a while ago; a.f.a.i.c.r. for duplicate content issues).

                  Of course this behaviour collides with the subsites hack, you have to think of a solution before the subsites modification can work.
                  I’m sure that block is quoted out in the default .htaccess file but the best way round it if you wish to enable this (advised) is to only match "www" requests then redirect them to the non-www URL (this is probably how it works currently). If using only different domains rather than sub-domains, you can add several rules to tidy them all up.
                  RewriteEngine On
                  RewriteCond %{HTTP_HOST} ^www\.company1\.com$ [NC]
                  RewriteRule ^(.*)$ http://company1.com/$1 [R=301,L]
                  
                  RewriteCond %{HTTP_HOST} ^www\.company2\.com$ [NC]
                  RewriteRule ^(.*)$ http://company2.com/$1 [R=301,L]
                  
                  RewriteCond %{HTTP_HOST} ^www\.company3\.com$ [NC]
                  RewriteRule ^(.*)$ http://company3.com/$1 [R=301,L]

                  This rule is used for several parked domains I have which also have wildcard DNS set for them. For example, www.dearapp.com will be pushed to the non-www version, but oh.dearapp.com works fine.
                    • 11954
                    • 58 Posts
                    Hi,

                    And how would I do this for subdomains please? I have 7 subdomains is that possible, also is there any point doing this now or should I wait for the revolution, when is it due out?

                    Also a bit confused about the subdomains, do I need to register them to be able to park them or is it better to add then as subdomains and point them at the root folder?
                      • 11954
                      • 58 Posts
                      Quote from: sal at Apr 23, 2009, 03:39 AM

                      Quote from: hquadrat at Apr 22, 2009, 10:43 PM

                      Mmmmh, I think since 0.9.6.3 the default MODx .htaccess includes a rewrite rule that always redirects either to the www. or the non-www subdomain for SEO reasons (google requested to decide for one or the other a while ago; a.f.a.i.c.r. for duplicate content issues).

                      Of course this behaviour collides with the subsites hack, you have to think of a solution before the subsites modification can work.
                      I’m sure that block is quoted out in the default .htaccess file but the best way round it if you wish to enable this (advised) is to only match "www" requests then redirect them to the non-www URL (this is probably how it works currently). If using only different domains rather than sub-domains, you can add several rules to tidy them all up.
                      RewriteEngine On
                      RewriteCond %{HTTP_HOST} ^www\.company1\.com$ [NC]
                      RewriteRule ^(.*)$ http://company1.com/$1 [R=301,L]
                      
                      RewriteCond %{HTTP_HOST} ^www\.company2\.com$ [NC]
                      RewriteRule ^(.*)$ http://company2.com/$1 [R=301,L]
                      
                      RewriteCond %{HTTP_HOST} ^www\.company3\.com$ [NC]
                      RewriteRule ^(.*)$ http://company3.com/$1 [R=301,L]

                      This rule is used for several parked domains I have which also have wildcard DNS set for them. For example, www.dearapp.com will be pushed to the non-www version, but oh.dearapp.com works fine.


                      I was being a bit slow, I now know what you mean. I put the following into my .htaccess and it works great with the subdomains:
                      RewriteCond %{HTTP_HOST} ^www\.high-rollercasinos\.com$ [NC]
                      RewriteRule ^(.*)$ http://high-rollercasinos.com/$1 [R=301,L]

                      The only slight problem is that the main site now defaults to http://high-rollercasinos.com and I want it to be www.high-rollercasinos.com or does it not make any difference to seo/serps etc. Is this possible some how? Sorry if this is really obvious to everyone but I’m not so confident with redirects etc.

                      BTW I have disabled it for now until I get an answer to the question but I can re-enable it if someone needs to check it out before helping me.


                      I alos have a slight problem in that the subfolders still form part of the address. E.g before I would have www.high-rollercasinos.com/Norsk/Poker-Rom etc and now I have no.high-rollercasinos.com/Norsk/Poker-Rom when what I want is no.high-rollercasinos.com/Poker-Rom i.e to strip away the subfolder part. Again I assume this is fairly easy but after trawling round the internet I’m just getting more andmore confused, please help.