[resolved] Help! Mistakingly Changed My Blog URL (5 posts)

  1. CLPhoto
    Posted 6 years ago #

    Hi, Hope someone can help. I mistakeningly changed my wordpress blog url in admin from http://www.creativelooksphotography.com.au/blog to just my main url, and now I cannot log into admin to change it as it constantly redirects. Is there a way to temporarialy disable this redirect so I can fix my mistake? Please help...


  2. Linda,

    Backup your database and files first in case something goes really wrong.


    Then give this method a try by modifying your theme's functions.php file.


  3. CLPhoto
    Posted 6 years ago #

    Hi jdembowski,

    Thanks for your response. I was actually able to fix it by using phpMyAdmin to edit the sql database wp_options to change it back to the correct url. Phew!!! Your support is much appreciated tho!

    Cheers :)

  4. jimisaacs
    Posted 6 years ago #

    3 solutions to this without reinstalling your blog completely:

    • Temporarily move/copy all of your wordpress files to your document root.
    • If you have access to an .htaccess file, AllowOverwrite it is enabled, and mod_rewrite is enabled, add a temporary rewrite rule before any other you may have to point your base url "/" to your old url "/blog".
    • Edit your database in the "(your_prefix)_options" table (most of the time this is the "wp_options" table, the default). The 2 options to check go by the option_names of: siteurl and home

    Please, always make a backup before editing your files and/or database like any of this ;)

  5. jimisaacs
    Posted 6 years ago #

    Wow I took too long, can delete that last one please.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.