Black Friday Sale! Get $20 off GP Premium, $40 off our new Lifetime license, and 45% off license renewals/extensions! Learn more

[Resolved] All it once my site stopt working?

Home Forums Support All it once my site stopt working?

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #51106
    Maarten

    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!

    #51107
    Maarten

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

    #51108
    Tom
    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 🙂

    #51109
    Maarten

    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?

    #51110
    Tom
    Lead Developer
    Lead Developer

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

    #51111
    Maarten

    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?

    #51116
    Maarten

    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 🙂

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