Forums

Moved WordPress to Sub-Directory (15 posts)

  1. Squirm
    Member
    Posted 5 months ago #

    I am able to use the control panel but am unable to see the website or preview the website. I am getting the following error:

    Warning: require(./german-car-repair-roswell-ga/wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in /home/content/k/i/d/kidsonftp/html/german-car-repair-roswell-ga/index.php on line 17

    Fatal error: require() [function.require]: Failed opening required './german-car-repair-roswell-ga/wp-blog-header.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/k/i/d/kidsonftp/html/german-car-repair-roswell-ga/index.php on line 17

    Can someone please help?

    Thanks in advance!

  2. Samuel B
    moderator
    Posted 5 months ago #

    error says this file is missing
    /wp-blog-header.php
    which may be indicative of others missing

  3. Squirm
    Member
    Posted 5 months ago #

    I got this error due to moving the WordPress installation to a sub-directory but I am not sure what I have done wrong...

  4. Squirm
    Member
    Posted 5 months ago #

    /wp-blog-header.php is there. I moved the whole directory so there should be no missing files...

  5. Samuel B
    moderator
    Posted 5 months ago #

  6. Squirm
    Member
    Posted 5 months ago #

  7. Samuel B
    moderator
    Posted 5 months ago #

    then best guess is you didn't change the wp-config.php properly
    example
    require('./wordpress/wp-blog-header.php');

  8. Rev. Voodoo
    Volunteer Moderator
    Posted 5 months ago #

    so index.php is in your root directory

    and everything else is in a folder named german-car-repair-roswell-ga

    is that correct?

  9. Squirm
    Member
    Posted 5 months ago #

    No, Rev.V

    I want the whole WordPress install nested in a folder named german-car-repair-roswell-ga. Currently all of it resides in there.

    Is that an issue?

    Thanks

  10. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 5 months ago #

    What URL do you want WP to be? domain.com or domain.com/german-car-repair-roswell-ga ?

  11. Squirm
    Member
    Posted 5 months ago #

    domain.com/german-car-repair-roswell-ga

  12. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 5 months ago #

    Okay :) Then you followed the wrong directions

    http://codex.wordpress.org/Moving_WordPress#Moving_WordPress_Within_Your_Site is what you should have done (the only you followed was to move WP to a subfolder, but have the URL be domain.com)

  13. Rev. Voodoo
    Volunteer Moderator
    Posted 5 months ago #

    so.... your main wordpress index.php should be in that incredibly long name folder, which it sounds like it is

    The index.php should be original, unedited. It does not need to point to ./german-car-repair-roswell-ga/wp-blog-header.php. Reason being, it is looking for a folder named german-car-repair-roswell-ga inside of the german-car-repair-roswell-ga folder.... because it is already in the german-car-repair-roswell-ga folder.... does that make sense? IT should just point to ./wp-blog-header.php

    and both URLs in general settings (or in your database if you have to manually do it) should reflect domain.com/german-car-repair-roswell-ga

  14. Squirm
    Member
    Posted 5 months ago #

    Awesome... That is what I was doing wrong... Thanks guys!

  15. Rev. Voodoo
    Volunteer Moderator
    Posted 5 months ago #

    I'm glad we were able to work through it! Because I was getting myself corn fused

Reply

You must log in to post.

About this Topic

Tags

No tags yet.