New answers tagged


You need to check if the siteurl differs from the home URL: if ( get_option( 'siteurl' ) !== get_option( 'home' ) ) { // whatever This also works if home is a subdirectory of the root, with WordPress installed in yet another subdirectory. For example: (URL) and (siteurl).


You will most likely have to edit your siteurl and home options, so WordPress knows where it lives, but your whole setup sounds like you will just encounter new problems each day. Get yourself a solid hosting plan and keep your files and domain together.

Top 50 recent answers are included