WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. CLPhoto
    Member
    Posted 4 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...

    Thanks,
    Linda

  2. Linda,

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

    http://codex.wordpress.org/WordPress_Backups
    http://codex.wordpress.org/Backing_Up_Your_Database
    http://codex.wordpress.org/Restoring_Your_Database_From_Backup

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

    http://codex.wordpress.org/Changing_The_Site_URL#Edit_functions.php

  3. CLPhoto
    Member
    Posted 4 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 :)
    Linda

  4. jimisaacs
    Member
    Posted 4 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
    Member
    Posted 4 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

Tags

No tags yet.