@adpiadmin I think I got this working. It seems that there is something in the WordPress code that doesn't like having hardcoded WP_HOME and WP_SITEURL values if you also have WordPress set to a static home page. Cloudron resets the WP_HOME and WP_SITEURL values each time you add an alias. I changed WordPress to not use a static home page and modified the index.php in our theme file to handle redirecting requests to / to /home (a static page).
adpiadmin
Posts
-
WP Alias Domains -
WP Alias Domains@nebulon Thanks, but I'm already using aliases. The aliases work fine except for the home page of the WordPress site. As mentioned in my prior post, if I attempt to go to aliasname.topleveldomain.org/somepage, that works fine. The browser stays at aliasname.topleveldomain.org/somepage. However, if I attempt to go to aliasname.topleveldomain.org, it gets redirected to the main location url (sites.topleveldomain.org in my case).
-
WP Alias DomainsHi, I'm having a similar problem as this one. I'm attempting to move a WordPress site from a server managed with Serverpilot to Cloudron. As is the case mentioned above, individual pages work fine using an alias, but the home page gets redirected to the main website URL.
To get it to work on the Serverpilot server, I modified the wp-config to have the following:
define('WP_HOME', 'https://' . $_SERVER['HTTP_HOST']);
define('WP_SITEURL', 'https://' . $_SERVER['HTTP_HOST']);It looks like Cloudron changes these back to the main site URL each time an alias is added. However, I tried manually changing it back to the entries above and still had the same problem with the home page.
More details:
The WordPress (developer) site in Cloudron is configured for sites.topleveldomain.org. I added an alias for mobilebayarea.topleveldomain.org. Going to mobilebayarea.topleveldomain.org/connect works fine. Going to mobilebayarea.topleveldomain.org redirects to sites.topleveldomain.org. I need it to work using mobilebayarea.topleveldomain.org for the home page just like the other pages. I've got code in the theme files that loads content based on the subdomain used to access the site. This has been working well on the Serverpilot server so I know it is possible but something in Cloudron is messing up the home page.Any ideas on how to fix?
Thanks -
Noob with a couple questions@jdaviescoates Thanks for the info. I appreciate it.
-
Noob with a couple questionsHi, I'm just getting started with Cloudron. It's great so far, but I have a couple questions. I've read the documentation, but don't see concrete answers to these.
Question 1:
I understand that apps can be backed up, moved, or restored as needed. I assume this would include the related MySQL database(s) for the app as well, is that correct? Just to confirm, if I have a WordPress app running, and I restore a backup of it on another server using Cloudron, the app files along with the full database would get restored, correct?Question 2:
I hadn't planned on using the mailing list feature, but it may help us with another problem. Where is the information for mailing lists stored? MySQL or in the filesystem? We have an internal server housing approximately 8000 mailing lists that get automatically updated daily. If the mailing list configuration information is stored in a file in the filesystem, would it work to update that file daily as a way to update the mailing lists without having to do it via the GUI?Thanks in advance!!