• Resolved mollycrabapple

    (@mollycrabapple)


    Hey Folks,

    So, I’m a complete newbie with WP and installing things onto website more generally.

    I installed WP onto my site, under the directory of WordPress. Then, I got the brilliant idea that I’d rather the address for my blog be https://www.example.com/blog than https://www.example.com/WordPress. So, I change the address (in both fields where you can) to https://www.example.com/blog.

    Now the WordPress doesn’t work at all. Not the blog, and not the administration. I can get to the login page, but when I press the button to login, it just goes to “blog” and gets all screwy

    I tried manually renaming the WordPress file folder on my site “blog”, but this didn’t work.

    Is there a php document that I can fiddle with on text editor to fix this?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • I believe you’ve changed site URLs in options, is that right? The fields there probably makes you think that you can change your URL just by changing those fields, which is exactly what you did – but that’s wrong.

    To change the URL you need to configure from the web server settings. And THEN you can change those WordPress fields in the Options page.

    Anyway to un-do the damage, you need to connect to your MySQL database, then change the 2 options back to what they were.

    I.e. Run this query

    SELECT * FROM <your table prefix>_options w
    where option_name = ‘siteurl’ or option_name = ‘home’;

    It should show your changed URLs. And run this query

    UPDATE <your table prefix>_options
    set option_value = ‘https://your old path’
    where option_name = ‘siteurl’ or option_name = ‘home’;

    and commit to change the options back. You should change the WordPress directory in file system to what it was before as well.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Screwed Up WordPress address’ is closed to new replies.