New answers tagged

3

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: domain.com/blog (URL) and domain.com/blog/wordpress (siteurl).


1

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