define('DISALLOW_FILE_MODS', true);
Comments on Hosting Multiple Top-level Domains Using MODx Revolution All These People are Going Green... I'm Just Tryin' To Keep It Real2012-12-10T01:43:45Zhttps://belafontecode.com/modx-revolution-hosting-multiple-domains/feed/atom/WordPress
By: .abelafonte .abelafontehttp://www.belafontecode.com/?p=402#comment-3672012-12-10T01:43:45Z2012-12-10T01:43:45Z@ben – I know, it’s confusing and took me a bit to figure it out as well.
The process of creating a gateway plugin that’s not in the index.php involves actually going to the “plugins” section of MODX and creating a new plugin there. I call it ‘Gateway’ in my builds, just to be consistent. But the name of your new plugin can be anything. The important thing is to have the correct system events checked.
]]>
By: ben benhttp://www.belafontecode.com/?p=402#comment-3662012-12-10T00:37:38Z2012-12-10T00:37:38Z.abelafonte
can you explaine your comments about restoring the index.php and using the gateway plugin, option 1 states that the Gateway Plugin is essentially the index.php file.
]]>
By: .abelafonte .abelafontehttp://www.belafontecode.com/?p=402#comment-3642012-07-22T02:10:36Z2012-07-22T02:10:36ZI have changed this process slightly and need to update this blog post.
But go back and put your index.php back to default and ONLY use the gateway plugin method. Even if you’re giving each domain its own folder, it’s better to put your gateway code in the plugin instead of in the index.php file.
]]>
By: Shawna Shawnahttp://fletcherwebdesign.comhttp://www.belafontecode.com/?p=402#comment-3632012-07-22T00:40:52Z2012-07-22T00:40:52ZWell, ok, I’m sorry, I take that back. I didn’t do that because the tutorial said not to if I was going to use separate folders. Since they are add-on domains to my site, they already contained they’re own folders. I did option 2 and skipped creating the folders and just used the ones already in my cPanel.
]]>
By: Shawna Shawnahttp://fletcherwebdesign.comhttp://www.belafontecode.com/?p=402#comment-3622012-07-22T00:38:23Z2012-07-22T00:38:23ZOh, lol I did that. I thought by plugin you meant a plugin that would show up in “Elements” in MODx. Now if I want visitors to be able to visit my site with or without http://www., what should I be doing?
]]>
By: .abelafonte .abelafontehttp://www.belafontecode.com/?p=402#comment-3612012-07-21T22:08:08Z2012-07-21T22:08:08ZShawna, Yes you need to have a gateway plugin for this to work.
Go back to the tutorial and look at “Option 1”. Those are the instructions for creating a gateway plugin and what to type there.
]]>
By: Shawna Shawnahttp://fletcherwebdesign.comhttp://www.belafontecode.com/?p=402#comment-3602012-07-21T22:00:57Z2012-07-21T22:00:57ZHmmm… I don’t happen to HAVE a Gateway plugin in my MODx plugins section. Should I? And surprisingly enough, this answered a separate question, kind of. I wasn’t able to view MY site when I finally changed the CSS to a resource, but I figured out that’s because I was visiting my site without www. When I add that, I now see what I’m supposed to see. lol
Is not have the Gateway plugin an issue? And I read somewhere I may have to change my “web” context setting once I add a new context. Would this solve my problem?
]]>
By: .abelafonte .abelafontehttp://www.belafontecode.com/?p=402#comment-3592012-07-12T23:32:07Z2012-07-12T23:32:07ZShawna, if your parked domain is showing the primary website, then your Gateway plugin isn’t set up properly.
Be sure that your gateway contains the exact domain you’re dealing with.
For example: If you type http://www.mydomain.com in the gateway and then access your site without WWW, it won’t re-route the traffic.
]]>
By: Shawna Shawnahttp://fletcherwebdesign.comhttp://www.belafontecode.com/?p=402#comment-3582012-07-12T06:28:31Z2012-07-12T06:28:31ZThis is working perfectly! I only have one problem: my add-on domain, hugsandkissesretail.com is getting redirected to fletcherwebdesign.com/hugsandkissesretail.com (hugsandkissesretail.com is the name of this website’s folder in cPanel). Is there any way to do a url rewrite to make the URL actually read correctly?
]]>
By: mosid mosidhttp://www.belafontecode.com/?p=402#comment-3572012-07-03T11:21:41Z2012-07-03T11:21:41Zsuperb article.
Thanks man.
]]>