Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #903651

    Brian S
    Participant

    Hi
    I accidentally moving my index.php file instead of copying. Now my website is blank. When realizing the mistake I copied it back, but still blank. I had a back up of the site and reinstalled but it didnt fix my problem of a blank site.
    My site is all latest versions of plugins, themes etc
    Any suggestions please would be greatly appreciated.

    #903653

    Brian S
    Participant
    This reply has been marked as private.
    #904548

    Darshana
    Moderator
    This reply has been marked as private.
    #905059

    Brian S
    Participant

    Thanks for your advice.
    My WordPress install is in its own /WP directory. I forgot to add my directory to the index file.
    I fixed my problem, I added to the index file address my install folder which was “WP”
    Thanks again

    The process to move WordPress into its own directory is as follows:

    Create the new location for the core WordPress files to be stored (we will use /wordpress in our examples). (On linux, use mkdir wordpress from your www directory. You’ll probably want to use “chown apache:apache” on the wordpress directory you created.)
    Go to the General panel.
    In the box for WordPress address (URL): change the address to the new location of your main WordPress core files. Example: http://example.com/wordpress
    In the box for Site address (URL): change the address to the root directory’s URL. Example: http://example.com
    Click Save Changes. (Do not worry about the error message and do not try to see your blog at this point! You will probably get a message about file not found.)
    Move your WordPress core files to the new location (WordPress address).
    Copy (NOT MOVE!) the index.php and .htaccess files from the WordPress directory into the root directory of your site (Blog address). The .htaccess file is invisible, so you may have to set your FTP client to show hidden files. If you are not using pretty permalinks, then you may not have a .htaccess file. If you are running WordPress on a Windows (IIS) server and are using pretty permalinks, you’ll have a web.config rather than a .htaccess file in your WordPress directory. For the index.php file the instructions remain the same, copy (don’t move) the index.php file to your root directory. The web.config file, must be treated differently than the .htaccess file so you must MOVE (DON’T COPY) the web.config file to your root directory.
    Open your root directory’s index.php file in a text editor
    Change the following and save the file. Change the line that says:
    require( dirname( __FILE__ ) . ‘/wp-blog-header.php’ );
    to the following, using your directory name for the WordPress core files:
    require( dirname( __FILE__ ) . ‘/wordpress/wp-blog-header.php’ );
    Login to the new location. It might now be http://example.com/wordpress/wp-admin/
    If you have set up Permalinks, go to the Permalinks panel and update your Permalink structure. WordPress will automatically update your .htaccess file if it has the appropriate file permissions. If WordPress can’t write to your .htaccess file, it will display the new rewrite rules to you, which you should manually copy into your .htaccess file (in the same directory as the main index.php file.)

    #905374

    Darshana
    Moderator

    Hi there,

    Glad you were able to fix your issue :). Cornerstone might not work if you do a general sort of migration. Please review to our migration guide here (https://community.theme.co/kb/cornerstone-migration/).

    Thanks!