• Hi, I just built my website, hosted by Godaddy, at crystalclearholdings.com/wordpress I want to change it to crystalclearholdings.com. I have read all the instructions and watched the videos. Since I’m using godaddy (plesk hosting) and a virtual directory I went to the file manager, httpdocs/wordpress, copied the index.php file from httpdocs/wordpress to httpdocs then edited the index.php file to say:

    require( dirname( __FILE__ ) . ‘/wordpress/wp-blog-header.php’ );

    From:

    require( dirname( __FILE__ ) . ‘/wp-blog-header.php’ );

    This should have worked but it doesnt. The root page crystalclearholdings.com does not work, it gives me a white screen, I have to go to crystalclearholdings.com/wordpress to see/edit the site. What am I doing wrong? I do not use Permalinks I don’t have a .htaccess file in my directory (I checked hidden files through my FTP client) Someone please help, appreciate

Viewing 3 replies - 1 through 3 (of 3 total)
  • edited the index.php file…

    This should have worked but it doesn’t.

    I have never heard of anyone doing that. So may I ask where you got those instructions?

    I have to go to crystalclearholdings.com/wordpress to see/edit the site. What am I doing wrong?

    Unless GoDaddy is completely different than BlueHost, your server is sending traffic to your sub-folder because that is where it has been told to find your WordPress installation. So if you move your installation, you need to tell your server where to find it at its new location and then update your database to match so it also knows where to find things.

    copied the index.php file from httpdocs/wordpress to httpdocs

    Again, you will need to tell your server to look for your installation there rather than where it has been told to find it at httpdocs/wordpress .

    Thread Starter alainlantigua

    (@alainlantigua)

    Thank you leejosepho

    Regarding the editing of the index.php file, WordPress Codex http://codex.ww.wp.xz.cn/Giving_WordPress_Its_Own_Directory instructions state to:

    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’ );

    Doesn’t my index.php file tell my server where to look for the page?

    Doesn’t my index.php file tell my server where to look for the page?

    Yes, but that does not accomplish or replace actually also moving your WordPress installation to httpdocs/ as part of your overall desire to change crystalclearholdings.com/wordpress to crystalclearholdings.com. Where your server currently has crystalclearholdings.com assigned and pointed to your hosting account root folder, you arrive at your WordPress installation by adding its actual location to that: crystalclearholdings.com/wordpress. Copying everything from httpdocs/wordpress/ to httpdocs/ will be necessary prior to your edit of index.php becoming effective, and then you will also need to update your database to match http://crystalclearholdings.com/ as you new address and path to your WordPress installation.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Transferring to Root Directory – Please help’ is closed to new replies.