• cloudcomputingtopics

    (@cloudcomputingtopics)


    So, I want to move my wp site – files/directories which are currently under the Root folder under subfolder (e.g. moving from “hmtl” to “html/ABC”. This will make easier to run multisite.

    I followed these instructions:
    /Giving_WordPress_Its_Own_Directory

    I also the added the following to wp-config.php:

    define('WP_HOME','http://example.com/ABC');
    define('WP_SITEURL','http://example.com');

    However, after doing everything mentioned, I receive the following when opening the site:

    Warning: require(./wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in /home/content/32/5463532/html/index.php on line 17

    Fatal error: require() [function.require]: Failed opening required ‘./wp-blog-header.php’ (include_path=’.:/usr/local/php5/lib/php’) in /home/content/32/5463532/html/index.php on line 17

    Any advise, what have I missed?

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

    (@cloudcomputingtopics)

    I added the subdirectory to line 17 in index.php

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

    However, now I receive the following error:

    Warning: require_once(/home/content/32/5463532/html/wp-load.php) [function.require-once]: failed to open stream: No such file or directory in /home/content/32/5463532/html/wp-blog-header.php on line 12

    Fatal error: require_once() [function.require]: Failed opening required ‘/home/content/32/5463532/html/wp-load.php’ (include_path=’.:/usr/local/php5/lib/php’) in /home/content/32/5463532/html/wp-blog-header.php on line 1

    2

    Thread Starter cloudcomputingtopics

    (@cloudcomputingtopics)

    Please advise, I edited the following files, but the error is the same as above:

    wp-config.php
    index.php

    adding the subfolder (ABC) as follows:
    require('./ABC/wp-blog-header.php');

    XavierBloemen

    (@xavierbloemen)

    have also copied .htaccess file to root?

    XavierBloemen

    (@xavierbloemen)

    and the index.php file

    Thread Starter cloudcomputingtopics

    (@cloudcomputingtopics)

    Yes I copied (not moved) .htaccess and index.php from the subfolder and put them under root.

    In index.php I edited line 17:
    require('./wp-blog-header.php');
    to
    require('./abc/wp-blog-header.php');

    So it should direct to the subfolder.

    I still get the following errors:
    Warning: require_once(/home/content/32/5463532/html/wp-load.php) [function.require-once]: failed to open stream: No such file or directory in /home/content/32/5463532/html/wp-blog-header.php on line 12

    Fatal error: require_once() [function.require]: Failed opening required '/home/content/32/5463532/html/wp-load.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/32/5463532/html/wp-blog-header.php on line 12

    Do I need to do something on the database or elsewhere? please help.

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

The topic ‘Moving site from Root to subfolder’ is closed to new replies.