Giving WordPress Its Own Directory – Parse Error?
-
I’ve followed the instructions on installing wordpress in a subdirectory, but I can’t seem to get the copied ‘index.php’ file in my root to direct to the right place. WordPress is installed in http://vcky.ca/studio, I want it to exist in my site root, http://vcky.ca
I get this error message for my index.php file:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE in /home/vckyca5/public_html/index.php on line 17
I’ve installed and reinstalled WordPress about a dozen times, I’ve used both TextEdit and SublimeText to edit the index.php file, made sure .htaccess was properly copied, made sure the WordPress Address URL and Site URL are correct, and I’m using pretty permalinks.
I’ve been combing through everything for hours and I don’t know what’s wrong. There are only two other threads that bring up the same trouble, but neither of them were resolved. I know I can just install everything into my root and deal with the clutter, but I really want to figure this out.
This is my code, and the last line is Line17
<?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__ ) . '/studio/wp-blog-header.php' );Thanks in advance for any help.
The topic ‘Giving WordPress Its Own Directory – Parse Error?’ is closed to new replies.