WordPress going to wrong index.php
-
I am planning on creating a wordpress sub-site within my main website to use as a news page. I have done this on another site with no problems, but that was a few years ago and I haven’t updated that site’s WP.
I just installed wordpress in a sub-folder of my main (non-WP) site. It says installation was successful, but every time I try to log in to the dashboard, wordpress goes outside of its sub-folder, to the index.php of my main site. It also does this when I try to go to the main page of the wordpress site.
I even tried temporarily deleting my main site’s index.php to see what wordpress would do, and it gave me a “can’t find the index.php” error message, even though the wordpress subfolder has its index.php file, and so does the wp-admin folder.
just to be clear, here is how the directories are set up:
Main Site folder
—index.php
—wordpress folder
——index.php (wordpress is ignoring this file and loading the
——main site’s index.php instead).
——wp-admin folder
———index.php (wordpress is ignoring this file and loading the
———main site’s index.php instead).Any idea how I can get wordpress to stay within it’s directories instead of loading the main site’s index.php?
- The topic ‘WordPress going to wrong index.php’ is closed to new replies.