• Hi there!

    I first uploaded everything to https://www.mnskp.nl/wordpress, of course I want everything to just be on https://www.mnskp.nl, so I copied all the files in /wordpress to mnskp.nl. Now I get this error when opening https://www.mnskp.nl:

    Warning: require(/var/www/web/snl625332/mnskp.nl/wordpress/wp-blog-header.php): failed to open stream: No such file or directory in /var/www/web/snl625332/mnskp.nl/wordpress/index.php on line 17 Fatal error: require(): Failed opening required ‘/var/www/web/snl625332/mnskp.nl/wordpress/wp-blog-header.php’ (include_path=’.:/usr/share/pear:/usr/share/php’) in /var/www/web/snl625332/mnskp.nl/wordpress/index.php on line 17

    The index.php states the following:

    /** Loads the WordPress Environment and Template */
    require( dirname( __FILE__ ) . ‘/wp-blog-header.php’ );

    What do I need to do?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Elke1987

    (@elke1987)

    I think it might have to do with the var/www/web directory which I can’t find. It’s the notion you get now when you go to https://www.mnskp.nl from Apache. Don’t know how this works either haha. Does it concern a file I need to add? Read something about the htaccess file, but can’t recall on any supportforums how to solve this.

    Hi Elke1987,

    Most WordPress users go from https://www.mydomain.com installation to https://www.mydomain.com/blog/ installation. That is the WordPress directory is moved to a sub-directory. You, my friend, are moving the other way – from sub-directory to root level.

    Firstly, back up everything, the database and all the files on your site. This just a precaution just in case you do something wrong you can start all over again from this point.

    All the pages and posts and comments and whatever are kept in the database, so I would suggest that you uninstall your current WordPress at https://www.mnskp.nl/wordpress, and then install a new copy of WordPress at https://www.mnskp.nl/ using the same database.

    Then your site should be working ok.

    I do hope this helps.

    Your WordPress installation is thinking that the other files are still residing in the /wordpress directory due to its SITE_URL setting.

    If you move all your files back into /wordpress, log into your installation and follow the instructions here to change the “WordPress address” setting before moving your files back out.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Changed directory, website gone, what now?’ is closed to new replies.