• Resolved ragster

    (@ragster)


    Re: https://toxinfreetoday.com

    I tried to change the url structure using these instructions from here:

    https://codex.www.ads-software.com/Changing_The_Site_URL

    (instructions copied at the end of this post.)

    Since doing that, all my pages except the homepage return a 500 Internal Server Error message.

    I can access the dashboard OK too.

    Suggestions greatly appreciated!

    Here’s the procedure I followed:

    Edit functions.php

    If you have access to the site via FTP, then this method will help you quickly get a site back up and running, if you changed those values incorrectly.

    1. FTP to the site, and get a copy of the active theme’s functions.php file. You’re going to edit it in a simple text editor (like notepad) and upload it back to the site.

    2. Add these two lines to the file, immediately after the initial “<?php” line.

    update_option(‘siteurl’,’https://example.com/blog&#8217;);
    update_option(‘home’,’https://example.com/blog&#8217;);

    Use your own URL instead of example.com, obviously.

    3. Upload the file back to your site, in the same location. FileZilla offers a handy “edit file” function to do all of the above rapidly; if you can use that, do so.

    4. Load the login or admin page a couple of times. The site should come back up.

    5. Repeat the above steps, but remove those lines. IMPORTANT: Do NOT leave those lines in there. Remove them immediately after the site is up and running again.

Viewing 1 replies (of 1 total)
  • Thread Starter ragster

    (@ragster)

    I managed to fix it by:

    Changing the permalinks back to default.
    (this produced 404 errors on those pages)

    Then

    Putting the permalinks back to /%postname%/

    et voila it was all working again!

Viewing 1 replies (of 1 total)
  • The topic ‘I've broken my site – getting some 500 Internal Server Errors’ is closed to new replies.