• Resolved awlang

    (@awlang)


    I followed the instructions on this page:

    https://codex.www.ads-software.com/Giving_WordPress_Its_Own_Directory

    until I tried to edit the .htaccess file and found that I didn’t have the line quoted below:

    Change the line that says:
    require(‘./wp-blog-header.php’);
    to the following, using your directory name for the WordPress core files:
    require(‘./wordpress/wp-blog-header.php’);

    … so couldn’t change it.

    I’m now unable to access the site at all and just get a server error.

    Please help!

Viewing 6 replies - 1 through 6 (of 6 total)
  • until I tried to edit the .htaccess file and found that I didn’t have the line quoted below

    You’re looking in the wrong file. That line is in WordPress’ root index.php file.

    Thread Starter awlang

    (@awlang)

    Thanks esmi. That was stupid of me.

    I’ve amended the line in the index.php file now and the site sort of loads, but not properly. More importantly, I still can access the site admin part. I’m guessing I still need to update the permalinks to make the site work, but at the moment I can access the admin panel at all. Clicking on login generates an error.

    Re-saving your permalinks should be the last step & it should clear up any remaining issues.

    Thread Starter awlang

    (@awlang)

    I’m getting in more of a mess now and am locked out of the site again.

    I don’t understand why: the updated files (index.php and .htaccess) in the root directory are now correct, but the login doesn’t work and gives an error saying ‘the page doesn’t redirect properly’.

    Is there anything I can do to get back to the admin panel?

    Can you clarify that you did just copy the index.php and .htaccess files over to the root folder – as opposed to moving them? Also try checking your site’s error logs for messages. Your hosts should be able to help you accessing your site’s error logs.

    Thread Starter awlang

    (@awlang)

    Ok, thanks again.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Giving WordPress its own directory, now can't access site’ is closed to new replies.