[Resolved] All it once my site stopt working?

Home Forums Support [Resolved] All it once my site stopt working?

Home Forums Support All it once my site stopt working?

  • This topic has 7 replies, 2 voices, and was last updated 9 years ago by Tom.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
  • #51106

    Help! What happened?
    Today I moved my website to the root directory of my website,
    all was working fine. But all at once my layout got lost and I cannot acces wp-admin anymore.
    Is my database down? How would I be able to reset this?
    Great! Good start for my website πŸ˜‰
    Thanks for the help!


    PS: my website link is http://www.deheuvel.be

    Lead Developer
    Lead Developer

    Hi there,

    Before moving your website to the root directory, did you change your Site URL and Home URL in “Settings > General”?

    If not, you’ll have to set them either through the database, or like this: http://codex.wordpress.org/Changing_The_Site_URL

    Set the Site URL to the new URL (since you switched directories) – and you should be good to go.

    Also, you may need to replace URLs within your content to the new URL – I suggest this plugin: https://wordpress.org/plugins/velvet-blues-update-urls/

    Hope this helps πŸ™‚


    Hey Tom!
    Weird thing is I DID all these things! Everything was fine at first but after an hour or so everything got lost? And I didn’t change anything in settings, only thing I was doing was changing my settings in Google Analytics?

    Lead Developer
    Lead Developer

    Hmm, so when you try to go to your website it’s a 404 error? Or?


    Hey Tom!
    Weird thing is everything was working correctly for more than one hour! Then I started editing my settings in Google Analytics and everything went wrong? Is it possible my wordpress just cannot acces the database at the moment?


    Everything fixed πŸ™‚
    I know where I went wrong: while changing for the first time I did something wrong and had to undo my actions with following code:

    <blockquote>If You Have Accidentally Changed your WordPress Site URL
    Suppose you accidentally changed the URIs where you cannot move the files (but can still access the login page, through a redirection or something).
    wp-login.php can be used to (re-)set the URIs. Find this line:
    require( dirname(__FILE__) . '/wp-load.php' );
    and insert the following lines below:
    //FIXME: do comment/remove these hack lines. (once the database is updated)
    update_option('siteurl', 'http://your.domain.name/the/path' );
    update_option('home', 'http://your.domain.name/the/path' );</blockquote>

    And I forgot to remove this line πŸ™‚ probably after accessing wp-login, it changed directories again. I’m sorry for my hysterical reaction πŸ™‚

    Lead Developer
    Lead Developer

    Glad you fixed it! πŸ™‚

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.