WordPress.org

Forums

changing the wordpress and website url (7 posts)

  1. roderickvs
    Member
    Posted 3 years ago #

    Installed wordpress in the folder /wordpress and now want to bring the site live so I changend the website url to the root which always works but this time I get:

    Warning: require(./wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in /home/gerdessen/domains/gerdessen.nl/public_html/index.php on line 17

    Fatal error: require() [function.require]: Failed opening required './wp-blog-header.php' (include_path='.:/usr/local/lib/php') in /home/gerdessen/domains/gerdessen.nl/public_html/index.php on line 17

    Can anybody tell me what's going wrong here?

  2. Samuel B
    moderator
    Posted 3 years ago #

    so I changend the website url to the root which always works

    actually that will never work

    use one of these methods
    http://codex.wordpress.org/Moving_WordPress#Moving_WordPress_Within_Your_Site

    http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

  3. roderickvs
    Member
    Posted 3 years ago #

    Thanks, will give it a try but I'm pretty sure I've done it like I wrote before so installing and designing it in the /wordpress folder then changing the website address in the WP settings ....., what's the point of this option in the settings if it doesn't work?

  4. govpatel
    Member
    Posted 3 years ago #

    what's the point of this option in the settings if it doesn't work?

    when you installed wordpress in folder named wordpress set the urls in Settings >>>>General as where the files and folders are located. When you want change to say keep wordpress in folder and still have it open from your domain name then you are coping index.php file in root and telling wordpress where files and folders are by changing line 17 with your folder name and changing siteurl to your domain name.

    If you move all files and folders in root then you do not have to worry about changing line 17 then you change both siteurl and wordpress url to your domain name in Settings>>>General.

  5. roderickvs
    Member
    Posted 3 years ago #

    line 17 of what would that be? and thanks!

  6. govpatel
    Member
    Posted 3 years ago #

    Line 17 of index.php file you copied in root if you using wordpress from a directory

  7. roderickvs
    Member
    Posted 3 years ago #

    thanks guys! the site is live on the domain / root http://www.gerdessen.nl

Topic Closed

This topic has been closed to new replies.

About this Topic