I have installed subsite module in my Silverstripe project. I have two domains
login.abc.com =>A main site
login.xyz.com => A subsite, virtual host is created
The problem here is I can access -
login.abc.com/ and login.abc.com/admin
login.xyz.com/admin
But I can't access login.xyz.com, it causes redirect loops
I then tried to debug this issue on framework\main.php
DataModel::set_inst(new DataModel());
echo "This code is printed"; //This code executes
Director::direct($url, DataModel::inst());
I m stuck for hours to figure out what might be causing the redirect loops, but in vain. Any help will be highly appreciated.
UPDATE
I created another domain login.pqr.com [Not subsite] and pointed to same folder and this also works properly. So the problem is clear that the issue exist only in subsite domain.
UPDATE 2
I then created subsite with domain with same name login.pqr.com. Now this time website frontend login.pqr.com didn't work.
UPDATE 3
If from subsites menu under admin, I turn off Enable public access, then it works.
So it seems issue in subsite module?? Any suggestions?
For those who might stumble upon this post in the future, to fix this issue -
We need to make sure that sub sites have pages created, most importantly the landing page
We can copy pages from the main site to the sub sites. Subsite module seem to have bug - If the page you are copying has children, the children are not copied, even if there is option to copy children
Related
Good day 😀
I have a WP Multisite in which a site was running. The administrators decided they would revamp the site, and they did it in a provisional subdirectory so that the original site would be available while the changes took place. So this is the current structure:
mymultisite.com
mysite.com
mymultisite.com/mysitebeingremade
Now that the site changes have been finished, I would like to attach the domain name to the revamped site. So, I try to disable the site currently attached to mysite.com, change its domain to a different one, and attach the domain name to the revamped one. So from the sites configuration I make the following changes in Sites > Edit site > Site info:
mymultisite.com
mysite.com -> mymultisite.com/mysite
mymultisite.com/mysitebeingremade -> mysite.com
But it seems as if the domain name keeps pointing to the old site. What am I doing wrong? Or is it just impossible to reuse a domain name previously used in a multisite, but not in use anymore, for a new site?
I guess that I can just overwrite the original sites with the one with the changes, but I think it is too much hassle for a seemingly simple task.
Thank you 😀
Ok, I sorted it out.
It seems that, when you delete a site from the multisite, it doesn't get deleted from the database. Specifically, one entry remains in the table [prefix]_domain_mapping in which the fields 'id' and 'blog_id' are still pointing to the old site that was linked to that domain.
By changing those two fields to the id of the new site that will be using that domain name, and provided that all the changes have been made to the configuration of that site in the site configuration to use that domain for that site, it should work ok.
Thank you,
I have a website built with Wordpress that has been having permalink issues. A few days ago, I had added a simple file, named qr.php, that I dropped in at the root level (where the wp-content and wp-upload folders reside). It has a script that redirect to pages outside of my website depending on what type of device the user is using. Basically, some one on a Apple device gets redirected to an itunes page, and droid user to the droid app store, etc.
Could this non Wordpress page be causing issues? I have had static or html pages in amonst my root level files before, and never had an issue. I feel like the redirects may change this.
Rather than using the qr.php(cutom redirect file) in your wordpress site. You can use a plugin which will help to redirect the external links.
Some of the plugins which might help you to achieve your purpose are Device Redirect - WordPress Phone &Tablet Redirect , RedirectPlus - Wordpress Mobile Redirect Plugin.
See the screenshots, try demo and check whether it fits your requirement.
No, it dont cause any issue with permalink..
I am also using a wordpress website : abc.com and a php based software integrated to admin folder on root.. And I can access easily abc.com and abc.com/newfolder/abc.php
So I created a new subdomain on Dreamhost. One-click installed Wordpress. Fresh Copied the olddomain.com to newdomain.com exported all the tables with the drop attribute to the new wordpress database via phpmyadmin. Then followed this post to update the urls.
The site doesn't load, giving me this error message:
The page isn't redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
This problem can sometimes be caused by disabling or refusing to accept cookies.
I would make sure to check the 'www' rules in Fully Hosted (from the web panel: Manage Domains > Web Hosting > Edit), compared with your site URL settings in the WordPress dashboard. Make sure those aren't conflicting first.
If you need further assistance, just let me know the domain name and I can take a look. Please also feel free to start a LiveChat from the panel or submit a ticket; our support team is here to help 24/7!
Thanks!
Ellice S
DreamHost Staff
I finally ended up creating an empty site and then using the WP Duplicator plugin. Worked like a charm!
I have moved my Wordpress multisite to a new host.
The existing main and sub sites are working fine, but after I create a new subsite the subsite and its admin panel keep redirecting me to the main site.
the wp-config and .htaccess files were copied as they were.
I've contacted an admin at the hosting company but he says that everything is defined right on their side and that there's something defined wrong on the WordPress side.
Can anyone say where the problem's really?
Ok, clearing browsers' caches solved the problem.
I have a main portfolio site hosted through MacHighway. My hosting package allows me to have two domains. I thought I'd register a new domain to experiment with some new things. So I bought a new domain, went into my main site's cPanel, registered it as an Addon Domain, and tried to install Wordpress on it. I got Wordpress working on it just fine, but then all of the links on my main site broke. So I deleted the files for the new site to see if that would help, but all of the links on my main site are still broken. The pages all say 'file not found.' Where did I go wrong? How can I fix this? I don't care about the new site at the moment. I just need to get my main site back the way it was. Help?
This is my site.
Nevermind. I visited Settings > Permalinks and everything works again.