Wordpress Multisite Siteurl & home setup creating odd paths. Why? - wordpress

As always thanks in advance if you can help.
I'm seeing a very weird issue with a multisite. Currently it has the following multisites setup:
www.domain.com
www.domain.com/london/
www.domain.com/paris/
www.domain.com/berlin/
Each subdirectory site uses a different child theme (containing a few changes to css in each) of www.domain.com overiding theme.
The network sites each have the setup options for Siteurl and Home, which each reflect the setup of:
Siteurl:www.domain.com
Home:www.domain.com/london/
This works fine, but BREAKS the backend navigation for the /london/ website trying to force all wordpress links as www.domain.com/wp-admin rather than www.domain.com/london/wp-admin.
I changed the network setup of each website to the equivalent of:
Siteurl:www.domain.com/london/
Home:www.domain.com/london/
This fixes the navigation for the backend of www.domain.com/london/wp-admin but breaks all path files for calling anything from the parent theme and breaks all css/images in the backend of wordpress.
This is dricing me crazy! Anyone else seen anything like this before?

So the answer to this if anyone finds this was that our server was running NGINX without us realising which caused some pretty weird conflicts with the wordpress url re-writing. We simply turned it off and just run the server with stand alone Apache and it worked!

Related

Why is WordPress redirecting to localhost

I have a WordPress website running on a server, using a docker container (with port forwarding 8001:80), and an Apache server with proxypass to redirect "demo.travel-itineraries.com" to "localhost:8001".
My problem is that WordPress redirects to localhost instead of using the website URL I specified.
My WordPress configuration doesn't contain any "localhost" occurrence (I tried SELECT * from wp_options where option_value like '%localhost%'; and there is no occurrence of localhost)
The WordPress address is set correctly
The homepage is working fine (http://demo.travel-itineraries.com/) but the second page isn't. If you check the link in the navbar, it's a link to "http://demo.travel-itineraries.com/les-joyaux-de-ladriatique-a-bord-du-pacific" but WordPress redirects to "http://localhost/les-joyaux-de-ladriatique-a-bord-du-pacific".
I checked with curl, and the RedirectedBy header is set to "WordPress".
Do you have any idea why it keeps redirecting?
Thanks
Worth a try: There is an extremely old bug in Wordpress which causes problems in permalinks (i.e. pages are not found) after moving the site to another server or directory even though everything is set correctly.
And there's the also-extremely-old fix for it to go to the backend, open the Settings > Permalinks page, change any one little detail, change it back again and click "save changes". And I've heard from others that often it's even enough to just open that Permalinks page without changing or saving anything.
I just had that again in the current version (5.8.3) – same problem, same fix. I really wonder why that bug still exisits...
I noticed Yoast is installed, the premium version of that plugin automatically creates redirects, you can check those by going to SEO > Redirects in the back-end.

WordPress multi-site in a subfolder on host

I'm wondering about a WordPress multi-site installation and nothing I've come across has clearly laid this out for me. I'm hoping to get a little more clarification on what exactly will happen in my WordPress/Server instance if I set up a multi-site.
I've currently got my actual site as a single instance Wordpress install at the root of my domain. I'd like to keep it that way.
I've set up a sub-folder on my site called "client-login" and it has it's own WordPress install. The idea is to make this WordPress instance a multi-site one. With the intent being that I can have multiple sites in there and give access to them as needed.
So far it all is making sense but when I go to actually complete the multi-site install it says the server address will be my domain at root level. It doesn't say domain/client-login.
My question is if I turn on the multisite will it take over the root of my domain and include my "real" site as part of it?
lets consider,
you have a main wordpress domain at public_html/
you have created a subfolder in host like public_html/client-login for another wordpress instance
these two will behave as a separate sites.
The wordpress multisite will work inside the public_html/mainsite not outside of it, and it wont affect the client-login subfolder.

Strange redirect / rename behavior on website

I have a website that has started exhibiting strange redirect behavior. It is a wordpress site running on Apache.
I've disabled all the wordpress plugins, disabled/baselined the .htaccess file to a wordpress default. None has had any effect.
What is happening is if you go to:
http://siteurl.com/dir it redirects you to https://siteurl.comdir
(deletes the / between .com and dir)
I've tried googling etc. can't seem to find any clues of where to look. I'd appreciate any tips on where to check/adjust. I've looked at the site's DNS configuration on the hosting provider and I can't see anything that would be affecting it. I have other sites on the same hosting provider/vps and they work correctly.
I think you can try one thing disable all pugins as well as the activate the default wordpress theme. After then change the permalink to default. I hope this will work for you. Let me know so i can find other solution.

Joomla 3 Website 404 on every page

I have been searching around the web for a solution but can't seem to find any to fix this situation. I can access the website through domain.com/joomla but not on the main domain without the /joomla.
(below are the two image to show the differences)
On my backend, the site is not offline, and I have at least 1 default article.
Could you please provide me with a new angle on how to solve this problem?
Thanks!
It's not working because you've installed it in a subfolder, if you want to view the website via domain.com then install joomla in the domain root folder.
You can also try this: .htaccess redirection to subfolder (masked)

Wordpress Multisite Not Working after Migration to New Server

I have a Wordpress Multisite which was working fine until I migrated the instance over to a new physical server.
The funny thing is that The instance itself is fine: I can get to everything except one of the sites. I cannot get to it's Admin section either, both the individual site and it's admin section come up as blank white pages. But none of my other sites do which I find rather weird.
It's not a database connection issue. I don't believe it's an .htaccess issue because i just copied over the same .htaccess file from the server that the whole instance was previously working on.
The only thing I can think of is that the Drive that Wordpress sits on is now different (D: now as opposed to E:).
I have mod_rewrite enabled and like I said all the other individual sites are working along with their individual admins.
I moved from Windows 2003 server to a Windows 2008 server and they are both on Apache Web Server.
Anyone else have the same problem or know of a way to remedy this?
A blank white page is a php error.
Check your error logs. That one site is using a plugin or theme with a conflict.

Resources