HannahSwift
Member
Posted 1 year ago #
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
HannahSwift
Member
Posted 1 year ago #
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!
JohnnyWhite2007
Member
Posted 1 year ago #
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')
?>
HannahSwift
Member
Posted 1 year ago #
Resolved from another forum.