• Resolved HannahSwift

    (@hannahswift)


    Well, my site is taylorswifties.co.cc and I am trying to change the blog directory from taylorswifties.co.cc/blog to taylorswifties.co.cc

    Well, here is my index.php:

    <?php
    *
    * @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_once('wordpress/wp-blog-
    header.php')
    ?>

    And the error message I get on my site is:
    Parse error: syntax error, unexpected '*' in /home/hannahxd/public_html/index.php on line 2

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter HannahSwift

    (@hannahswift)

    Changed index.php to:

    <?php
    *
    * @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_once('wordpress/wp-blog-
    header.php')
    ?>

    And changed the .htaccess to:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /wordpress/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /wordpress/index.php [L]
    </IfModule>
    # END WordPress

    Please help. I am desperate!

    This is because you need to add a / in front of the * on line 2. Like so:

    <?php
    /*
    * @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_once(‘wordpress/wp-blog-
    header.php’)
    ?>

    Thread Starter HannahSwift

    (@hannahswift)

    Resolved from another forum.

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

The topic ‘Giving wordpress it's own directory error’ is closed to new replies.