define('DISALLOW_FILE_MODS', true); Comments on: Hosting Multiple Top-level Domains Using MODx Revolution https://belafontecode.com/modx-revolution-hosting-multiple-domains/ All These People are Going Green... I'm Just Tryin' To Keep It Real Mon, 10 Dec 2012 01:43:45 +0000 hourly 1 https://wordpress.org/?v=6.7.5 By: .abelafonte https://belafontecode.com/modx-revolution-hosting-multiple-domains/comment-page-1/#comment-367 Mon, 10 Dec 2012 01:43:45 +0000 http://www.belafontecode.com/?p=402#comment-367 @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 https://belafontecode.com/modx-revolution-hosting-multiple-domains/comment-page-1/#comment-366 Mon, 10 Dec 2012 00:37:38 +0000 http://www.belafontecode.com/?p=402#comment-366 .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 https://belafontecode.com/modx-revolution-hosting-multiple-domains/comment-page-1/#comment-364 Sun, 22 Jul 2012 02:10:36 +0000 http://www.belafontecode.com/?p=402#comment-364 I 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 https://belafontecode.com/modx-revolution-hosting-multiple-domains/comment-page-1/#comment-363 Sun, 22 Jul 2012 00:40:52 +0000 http://www.belafontecode.com/?p=402#comment-363 Well, 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 https://belafontecode.com/modx-revolution-hosting-multiple-domains/comment-page-1/#comment-362 Sun, 22 Jul 2012 00:38:23 +0000 http://www.belafontecode.com/?p=402#comment-362 Oh, 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 https://belafontecode.com/modx-revolution-hosting-multiple-domains/comment-page-1/#comment-361 Sat, 21 Jul 2012 22:08:08 +0000 http://www.belafontecode.com/?p=402#comment-361 Shawna, 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 https://belafontecode.com/modx-revolution-hosting-multiple-domains/comment-page-1/#comment-360 Sat, 21 Jul 2012 22:00:57 +0000 http://www.belafontecode.com/?p=402#comment-360 Hmmm… 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 https://belafontecode.com/modx-revolution-hosting-multiple-domains/comment-page-1/#comment-359 Thu, 12 Jul 2012 23:32:07 +0000 http://www.belafontecode.com/?p=402#comment-359 Shawna, 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 https://belafontecode.com/modx-revolution-hosting-multiple-domains/comment-page-1/#comment-358 Thu, 12 Jul 2012 06:28:31 +0000 http://www.belafontecode.com/?p=402#comment-358 This 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 https://belafontecode.com/modx-revolution-hosting-multiple-domains/comment-page-1/#comment-357 Tue, 03 Jul 2012 11:21:41 +0000 http://www.belafontecode.com/?p=402#comment-357 superb article.
Thanks man.

]]>