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 Real 2012-12-10T01:43:45Z https://belafontecode.com/modx-revolution-hosting-multiple-domains/feed/atom/ WordPress By: .abelafonte .abelafonte http://www.belafontecode.com/?p=402#comment-367 2012-12-10T01:43:45Z 2012-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 ben http://www.belafontecode.com/?p=402#comment-366 2012-12-10T00:37:38Z 2012-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 .abelafonte http://www.belafontecode.com/?p=402#comment-364 2012-07-22T02:10:36Z 2012-07-22T02:10:36Z 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 Shawna http://fletcherwebdesign.com http://www.belafontecode.com/?p=402#comment-363 2012-07-22T00:40:52Z 2012-07-22T00:40:52Z 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 Shawna http://fletcherwebdesign.com http://www.belafontecode.com/?p=402#comment-362 2012-07-22T00:38:23Z 2012-07-22T00:38:23Z 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 .abelafonte http://www.belafontecode.com/?p=402#comment-361 2012-07-21T22:08:08Z 2012-07-21T22:08:08Z 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 Shawna http://fletcherwebdesign.com http://www.belafontecode.com/?p=402#comment-360 2012-07-21T22:00:57Z 2012-07-21T22:00:57Z 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 .abelafonte http://www.belafontecode.com/?p=402#comment-359 2012-07-12T23:32:07Z 2012-07-12T23:32:07Z 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 Shawna http://fletcherwebdesign.com http://www.belafontecode.com/?p=402#comment-358 2012-07-12T06:28:31Z 2012-07-12T06:28:31Z 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 mosid http://www.belafontecode.com/?p=402#comment-357 2012-07-03T11:21:41Z 2012-07-03T11:21:41Z superb article.
Thanks man.

]]>