• Hiya –

    Now that I’ve upgraded to 1.5 I can’t recall how I originally moved index.php to the root of my webserver docs directory. What paths do I need to change in which files in order to locate index.php there instead of in /wordpress?

    TIA –

    Matt

Viewing 4 replies - 1 through 4 (of 4 total)
  • Primarily you’d need to set the Blog address field in Options > General to point to the correct url.

    Also, the path to wp-blog-header.php in index.php would need to be corrected:

    <?php
    require('./wordpress/wp-blog-header.php');
    ?>

    That is, if it’s there…

    Thread Starter mattmend

    (@mattmend)

    Interesting. The location was still set properly and I updated the require line as mentioned above but can’t get pages to load now. No syntax errors either. Odd.

    Thread Starter mattmend

    (@mattmend)

    Never mind. Problem solved. Some reason, doesn’t like entire URI spelled out in blogheader line. When I updated it to just a locally-referenced URI, it worked fine.

    Reference to future investigators:

    <?php
    require('http://my.site/wp-blog-header.php');
    ?>

    does not work because PHP requires a directory path to a file (and not the URL). So:

    <?php
    require('/path/to/my/www/wp-blog-header.php');
    ?>

    is what you want for full (absolute) paths.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Moving Index.php in 1.5’ is closed to new replies.