• I followed the direction for my blog to be in the root (moved .htaccess and index.php to root) All is working but for a few items.

    1. If I use https://www.domain.com/wp-login.php I get this

    Warning: main(/home/provanta/public_html/wp-config.php) [function.main]: failed to open stream: No such file or directory in /home/provanta/public_html/wp-login.php on line 2

    Warning: main(/home/provanta/public_html/wp-config.php) [function.main]: failed to open stream: No such file or directory in /home/provanta/public_html/wp-login.php on line 2

    Fatal error: main() [function.require]: Failed opening required ‘/home/provanta/public_html/wp-config.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/provanta/public_html/wp-login.php on line 2

    I have to use https://www.domain.com/blog/wp-login.php for it to work.

    Also, on my RSS if I use https://www.domain.com/wp-feed.php I get page not found. Same with https://www.domain.com/wp-commentsrss2.php.

    Is there anyway around this without having to move the entire Blog directory to root?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mnikoley

    (@mnikoley)

    Anyone?

    I think I had the same problem. I looked at source in my browser to identify the file to change. Then I went to the active theme folder (using FTP), I opened the file with that login link (in my case, footer.php), locate that hyperlink, and changed the path (adding the new folder) in the URL. Then my login screen opened without a problem.

    For example, if my root were myblog.org, but I moved my WP files (except the index and .htaccess) to a new folder named “wordpress,” then the original login url in footer would still be:

    myblog.org/wp-login.php

    which would no longer work. To fix the broken link, The url in the footer.php, would now need to include “wordpress” so it looks like this:

    myblog.org/wordpress/wp-login.php

    If your theme login is in the sidebar, then you’d have to make the change to a file that could be named sidebar.php.

    I assume these theme links needs to be changed manually, in the active theme folder, if you move worpress files to a new folder, or move the index/htaccess files up a directory (like to root) from a folder where WP was installed.

    Maybe someone can correct me if that’s not so, but changing the URL in themes worked for me.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Issues with move to root’ is closed to new replies.