Support » Fixing WordPress » Blog virtual directory

Viewing 3 replies - 1 through 3 (of 3 total)
  • 1. Did you install WP in or in ?

    2. When you login and go to your control panel under Settings>>General what is set in these fields WordPress Address (URL) & Site Address (URL)?

    3. Are you using a static homepage?

    WP was installed in, both addresses are, and yes I am using a static home page. And oh no, I just broke my site. I tried putting in the WordPress address URL and now I’m getting nothing found.

    Ok there is a way out of this problem … actually two ways.

    1. Do you know where your theme folder is? (This is the way I prefer but it is a long winded method). What is your theme? Go to your theme folder and edit functions.php . Just after <?php right at the beginning put these two lines of code:-


    Then login into your site and go to Settings > General and just check that WordPress Address (URL) & Site Address (URL) are set to It should be set to that value. Click on save button. Logout and then log back in and save again. Do this a few times. View your site and it should be back to normal. Once everything is back to normal delete those two lines of code in the functions.php file. And check your site log in and view site. It should be restored.

    2. The second method is to hardcode the URL’s. Go to your WP root level and find wp-config.php and edit the file. Right at the top just after <?php add the folloing two lines of code:-


    save the file and load up your site and login. Your site will be back but if you go to Settings >> General you will find you cannot change the WP Add and Site URL as it is hardcoded in. This method is good if you have some serious problems with your site.

    The first method will get your site up as if nothing happened and that is the advantage of the first method.

    See for more explanation.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Blog virtual directory’ is closed to new replies.