WordPress.org

Ready to get started?Download WordPress

Forums

Change of root directory (6 posts)

  1. AdieuArcheB
    Member
    Posted 1 year ago #

    Hello all,

    I had used an AppWizard of a hosting provider to install my WordPress site at beta.mysite.com.

    Then I created my pages and then, I did a silly thing, because I simply changed in the WP Admin Settings the websites URL to http://www.mysite.com.

    This resulted in an error message and now I can't log into the WordPress admin area anymore.

    What file do I need to change either get access to the http://www.mysite.com admin area or alternatively to change back the root directory to bet.mysite.com again.

    Thanks in advance for your help!

  2. To revert the changes you'll need to edit the entry in the database using phpMyadmin.
    Your hosting provider should have phpmyadmin through their cpanel.
    Once logged in, go the wp_options table and look for the siteurl and home.
    Once yo've changed these back to what they were then you'll regain access to your site.

    Then if you want to change the path, make sure you read this first - http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

  3. AdieuArcheB
    Member
    Posted 1 year ago #

    Thanks Christine! This was easy and it worked. I'll make sure to read the article before doing anything else.

  4. AdieuArcheB
    Member
    Posted 1 year ago #

    Oh, I was a bit too hasty with marking the thread as resolved.

    I actually have access to the control panel, but beta.mysite.com still gets redirected to http://www.mysite.com.

    Where can I revert this?

    Thanks again!

  5. In the wp_options table did you change the url in 2 spots?

    There should be one table entry for siteurl and then another for home.
    Depending on your phpMyadmin set up, the second one appears on page 2 of the table entries.

    [PS: I changed this thread to not resolved for you ]

  6. AdieuArcheB
    Member
    Posted 1 year ago #

    Thank you Christine for reopening the thread!

    Everything is fine now. I guess it was just a cache issue.

    But I was wondering why you pointed to http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory to do it the right way. Isn't http://codex.wordpress.org/Moving_WordPress more applicable?

    Thanks for your help and have a good start into the new year!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.