• Hi,

    Probably a simple one this.

    I simply want to change the index page of my site (www.downinautumn.com) to be my WordPress index, which currently resides at https://www.downinautumn.com/wp. I dont need to move the whole WordPress directory (/wp/), just the index.

    So I followed the tutorials available here and did the following;

    -logged into the WordPress dashboard,
    -went to the general settings
    -changed the blog url from /downinautumn.com/wp to /downinautumn.com.
    -Went to my webhost, moved the index.php file from /WP to the root directory.
    -Changed the code in the index.php file from ‘./wp-blog-header.php’ to ‘./wp/wp-blog-header.php’

    and now when i go to https://www.downinautumn.com, I get a nice big long error message that I don’t understand and have no real idea how to fix! If you go to the url you should see what I mean.

    Sorry if this is an obvious fix, but I’m a proper amateur when it comes to this stuff.
    Any help would be greatly appreciated.
    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter thomcas

    (@thomcas)

    Thanks for the quick reply,

    Yeah that’s the tutorial I tried to follow, the difference being I’m not trying to change the location of the the WordPress directory. In that particular tutorial they’re moving all the wordpress files to a new location ‘/wordpress/’, all my wordpress files are already where I want them; /wp/.
    Shouldn’t it be a simple case of just moving the index.php file and editing the code to direct it to the wp-blog-header file?

    Will it only work if I change the location of the entire WordPress folder on my server??

    I have what I think is a similar problem but am not sure if I have to implement the same changes.

    https://williambowles.info

    I installed WP in a sub-directory (WordPress) of my old HTML site and added a redirect in the old index.html to the new site (https://williambowles.info/wordpress), but this is a stopgap measure. I’d like to make https://williambowles.info go directly to the WordPress site.

    Bill

    well, thechnically the above referenced codex page does show you how to move from root to having files in a subdirectory, but still running from root. Since you are already in the subdirectory, but want to run from root, you just follow some of the steps.

    1) set wordpress url to location of files in settings->generl (https://example.com/wp)
    2) set blog url to the location (root) you wanna run WP from (https://example.com)
    3) save changes (you may get an error, WP won’t run properly now)
    4) start following the above tutorial at step #7

    Thread Starter thomcas

    (@thomcas)

    I followed that tutorial to the letter.

    Changed the wordpress directory to /wordpress,
    copied the index.php file to the root,
    changed the code to point to the new blog-header

    And it still doesn’t work. I’m still getting this weird error message when I try to view my site (https://downinautumn.com)

    “Warning: require(./wordpress/wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in \\boswinfs03\home\users\web\b234\whl.thomcas\index.php on line 17

    Fatal error: require() [function.require]: Failed opening required ‘./wordpress/wp-blog-header.php’ (include_path=’.;c:\php\5\pear’) in \\boswinfs03\home\users\web\b234\whl.thomcas\index.php on line 17″

    If anyone could help me understand this and sort it out I’d be extremely grateful, I’ve absolutely no idea what to do!

    Cheers.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Changing location of index to root directory’ is closed to new replies.