slash needed when moving wp to the root
-
Hi everyone.
I’m having an issue pointing a wp install from a subfolder to the root.
I’ve followed the codex and copied and edited the index.php from the folder where the install, is over to the root after downloading it and editing the blog-header reference:
from: require(‘./wp-blog-header.php’);
to: require(‘./en/cms/wp-blog-header.php’);I don’t have permalinks set, and no htaccess file was found anyway when I checked for hidden files on the server so this is the only file I believe that needed to be edited.
When I type in domain.com/ (using an ending slash after the domain name) the wordpress site comes up. So far so good – I suspected the ending slash might have something to do with the problem but I’m not sure why. Also, my host settings (dreamhost) are using ‘change domain.com to https://www.domain.com. WordPress is also using www for both the install and the site location.
However, if I leave off the ending slash and just type in the domain name, I get a blank page which doesn’t display an error of any sort (perhaps it’s a totally white graphic as content, because inspecting the page elements reveals a jpg and a css file being accessed). The index.php is the only file in the root folder except for favicon.ico and favicon.gif files. There are no htm or any other files there — I also looked in the wordpress and other folders on the domain and didn’t notice any strange files there either.
Would be great to be able to troubleshoot this strange problem. Thank you all.
- The topic ‘slash needed when moving wp to the root’ is closed to new replies.