• I have my current site running at http://www.utahskimo.org/blog. I am trying to redirect this to the root site (www.utahskimo.org). I have followed the directions at http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory and I receive the following error:

    Parse error: syntax error, unexpected ‘/’ in /home/content/49/8717949/html/UtahSkiMo/index.php on line 17

    I have set the WordPress URL to http://utahskimo.org/blog and the Site Address URL to http://utahskimo.org

    I have moved the index.php and .htaccess files to the root directory (http://utahskimo.org).

    I have updated the index.php file to the following (adding only the ./blog on line 17)
    —————-

    <?php
    /**
     * Front to the WordPress application. This file doesn't do anything, but loads
     * wp-blog-header.php which does and tells WordPress to load the theme.
     *
     * @package WordPress
     */
    
    /**
     * Tells WordPress to load the WordPress theme and output it.
     *
     * @var bool
     */
    define('WP_USE_THEMES', true);
    
    /** Loads the WordPress Environment and Template */
    require( dirname( __FILE__ ) . ‘./blog/wp-blog-header.php' );

    —————–

    I am running the Catch Everest theme v 1.3.1.

    Thank you for any help you can provide.

Viewing 7 replies - 1 through 7 (of 7 total)
  • bit confused but. do you have anything on root dir? if not why dont move everything under blog folder to root folder and then follow the process of changing WP url/ transfer wp site. the way you are showing above looks complicated and i wounder it should work at all/ requires a lot of places to change the URL, it cant be just under wp-settings, themas are usually designed to work under single dir…

    why dont move everything under blog folder to root folder

    Because that is far more complex than allowing WordPress to take over the root domain – a well documented, tested and even recommended method.

    @brackec: You have an opening curly quote in require( dirname( __FILE__ ) . ‘./blog/wp-blog-header.php' );. Did you edit the file in a plain text editor?

    Hey brackec,

    In WordPress 3.7.1 thigs are little different. Here is what you need to do, remove the point mark before “/blog…” and you’ll be ok:

    change this

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

    into this

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

    Sorry but there was no such change in WP 3.7.

    I’m having the same issue. I installed WP into a directory named n. I follow the directions in the codex for doing this several times in the past with no problems. This is the first time using 3.7and I can not get it to work correctly. What changed?

    @dotmandesign: If you require assistance then, as per the Forum Welcome, please post your own topic.

    Sorry, I will repost the same question.

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

The topic ‘Trouble directing wordpress installation to root directory’ is closed to new replies.