WordPress.org

Ready to get started?Download WordPress

Forums

How to move the blog to a new URL/directory -domain.com ->domain.com/blog (7 posts)

  1. irinla
    Member
    Posted 4 years ago #

    Hi there,

    I have now installed the WP to my root domain ex. domain.com
    I want to move the blog to a new directory and the URL should be like domain.com/blog. What to do? Simple steps?

    (I will create static page at domain.com with no blog functions but I'll do it later so this is not the main problem)

    How to do this on the Dashboard?
    What should I do at Reading Settings on the Dashborad or should I do
    it at General settings to change URL?
    Any SIMPLE step-to-step guide?

    Thankx.

  2. keesiemeijer
    moderator
    Posted 4 years ago #

  3. irinla
    Member
    Posted 4 years ago #

    Thanks!

    This was new information, I have been linked to the guide How to move WordPress to give WordPress its own direcory.

    I got now some serious trubble.
    I went to General Settings.
    I changed the WordPress URL to domain.com/blog but regreted after couple minutes because I thought the process would be too complecate to do, so I removed the /blog and loged out.
    Dam!
    Now I can't log into the Dashboard at all.
    Not from domain.com/wp-admin or domain.com/blog/wp-admin !!!!!!

    WHAT TO DO KNOW? I really need urgent help.
    Please help me out!!!! Pleeeaaaaase!!!
    Anyone!

  4. boah123
    Member
    Posted 4 years ago #

    Try your ip address: x.x.x.x/wp-admin or x.x.x.x/wp-admin

    Alternative, browser your database and search for the settings in the data (if you have access to the database).

    Hope this helps

  5. keesiemeijer
    moderator
    Posted 4 years ago #

    Often host control panels, such as cPanel and Plesk, have phpMyAdmin pre-installed. If you know how to access phpMyAdmin on your host, then you can edit these values directly in the database to get you up and running again. Instructions here: http://codex.wordpress.org/Changing_The_Site_URL#Changing_the_URL_directly_in_the_database

  6. keesiemeijer
    moderator
    Posted 4 years ago #

    Or put this in your wp-config.php, where "example.com" is the NEW location of your site.

    define('WP_HOME','http://example.com');
    define('WP_SITEURL','http://example.com');

    This is not necessarily the best fix, it's just hardcoding the values into the site itself. You won't be able to edit them on the General settings page anymore when using this method.

  7. irinla
    Member
    Posted 4 years ago #

    My host Hostgator fixed the problem in 30 sec, i'm so happy!
    They removed the directory and now Im able to log in to the site again!!
    Wow.

    But I'll check you links.

    I definateley need professional help to move the wp files to a new directory and I'm not going to that by myself.

    *swet*

    Thank you

Topic Closed

This topic has been closed to new replies.

About this Topic