Giving WordPress Its Own Directory ERROR

Status
Not open for further replies.

thegoldenpuffle61

New Member
Messages
19
Reaction score
0
Points
0
Yup. Please add a / in front of the asterisk on line 2 and the error will go away.

You can just copy the following and replace your entire file with this:

PHP:
<?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('wordpress/wp-blog-header.php');
?>

Nope. Still same error.
Here's the current index.php file now:

<?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')
?>

---------- Post added at 05:49 AM ---------- Previous post was at 05:47 AM ----------

Yup. Please add a / in front of the asterisk on line 2 and the error will go away.

You can just copy the following and replace your entire file with this:

PHP:
<?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('wordpress/wp-blog-header.php');
?>

Okay, I copied it. Now the error is:

Warning: require_once(wordpress/wp-blog- header.php) [function.require-once]: failed to open stream: No such file or directory in /home/hannahxd/public_html/index.php on line 16

Fatal error: require_once() [function.require]: Failed opening required 'wordpress/wp-blog- header.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/hannahxd/public_html/index.php on line 16
 

techairlines

x10 Flyer
Community Support
Messages
2,867
Reaction score
165
Points
63
Your error: Warning: require_once(wordpress/wp-blog- header.php) [function.require-once]: failed to open stream: No such file or directory in /home/hannahxd/public_html/index.php on line 16

Why is there a space between blog- and header? Remove this space.

Cause I just checked your site and wp-blog-header.php does exist.
 
Last edited:

techairlines

x10 Flyer
Community Support
Messages
2,867
Reaction score
165
Points
63
Looks like you got it. Your blog is now loading.

But your CSS are calling from /blog/. You need to change this in WordPress Settings --> General. Change the URL to /wordpress/ not /blog/.
 

thegoldenpuffle61

New Member
Messages
19
Reaction score
0
Points
0
Your error: Warning: require_once(wordpress/wp-blog- header.php) [function.require-once]: failed to open stream: No such file or directory in /home/hannahxd/public_html/index.php on line 16

Why is there a space between blog- and header? Remove this space.

Cause I just checked your site and wp-blog-header.php does exist.

YES it's working again (well sorta, but I'll just make another thread since this problem is fixed)
 

techairlines

x10 Flyer
Community Support
Messages
2,867
Reaction score
165
Points
63
YES it's working again (well sorta, but I'll just make another thread since this problem is fixed)

Glad we could help.

The CSS problem can easily be fixed by going to your WordPress Settings --> General and changing the URL from /blog/ to /wordpress/. :)
 
Last edited:

thegoldenpuffle61

New Member
Messages
19
Reaction score
0
Points
0
Thank you SO MUCH for helping!! I'm been stressed out :)

But crud, I'm getting a 500 Internal Server Error when trying to log in.

"Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, no-reply@x10hosting.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request."
 
Last edited:

techairlines

x10 Flyer
Community Support
Messages
2,867
Reaction score
165
Points
63
Crud, I'm getting a 500 Internal Server Error.

"Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, no-reply@x10hosting.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request."

You're using the wrong URL probably. Use http://taylorswifties.co.cc/wordpress/wp-login.php to login.

Your settings are incorrect so its loading at /blog/ instead.

AFTER you login, go to http://taylorswifties.co.cc/wordpress/wp-admin/options-general.php to change your WordPress address to http://taylorswifties.co.cc/wordpress. You must do this AFTERyou login, or 500 error will return.
 
Last edited:

thegoldenpuffle61

New Member
Messages
19
Reaction score
0
Points
0
Okay, bhupendra2895 had told me to reinstall wordpress. I did, but now when I try to log in, it just frankly refreshes the page and turns the boxes blank again. Thanks though.

EDIT: WOOOHOOO! I fixed the CSS problem but I still cannot login.
 
Last edited:

techairlines

x10 Flyer
Community Support
Messages
2,867
Reaction score
165
Points
63
Status
Not open for further replies.
Top