WordPress.org

Ready to get started?Download WordPress

Forums

I did my homework... just one questions on Moving wordpress folder (7 posts)

  1. fxblogger
    Member
    Posted 2 years ago #

    I'm about to move my blog from mydomain.com/blog/ to mydomain.com

    I already read the instructions here: http://codex.wordpress.org/Moving_WordPress

    But I just have one question, is there any kind of redirections that I need to do after moving it?

    I thought about this because for sure there will be people/search engines trying to reach older posts....

    I'll appreciate your input.

    Thanks!

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 2 years ago #

    If I may offer a suggestion...

    http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory#Using_a_pre-existing_subdirectory_install

    Is the easiest. Otherwise you need to worry about rewriting some URLs in the database.

    This leaves the admin at domain.com/blog/wp-admin, and keeps most files in /blog

    The frontend of the site however, runs from domain.com

    This has the added bonus of keeping your root directory neat, with no extranneous files kicking around

  3. fxblogger
    Member
    Posted 2 years ago #

    Hey Rev. Voodoo,

    Thanks for your suggestion...

    I didnt know I could do it that way... looks like an easier way to handle it...

    How would it handle Pages URLs?

    http://www.mydoamin.com/blog/mypage.html

    or

    http://www.mydomain.com/mypage.html

    and what about blog plsts URLs?

    http://www.mydoamin.com/blog/2012/05/11/mypost/

    or

    http://www.mydoamin.com/2012/05/11/mypost/

    Thanks again Rev. VooDoo

  4. Rev. Voodoo
    Volunteer Moderator
    Posted 2 years ago #

    /blog would no longer appear in your URLs

    Your assets (Theme files, images, etc) would still live in your /blog directory so if you view your source code in your browser you could see reference to the path.

    For instance, my personal blog rvoodoo.com lives in a folder named /empire so

    MY main url is: rvoodoo.com
    My about page is: rvoodoo.com/about-the-reverend/

    See, no reference to that /empire folder

    But, if you were to view my source code you could see:

    my css coming from: rvoodoo.com/empire/wp-content/themes/voodoowood/style.css

    and my admin is: rvoodoo.com/empire/wp-admin

  5. fxblogger
    Member
    Posted 2 years ago #

    Great, thanks! Looks like I'm going to implement your suggestion...

    Will there be a problem with duplicate content? Since I'm moving from /blog/ to root?

    Is there a redirection I need to do?

    Hey Rev. Voodoo, I really appreciate your help!

    Cheers

  6. mattmagi
    Member
    Posted 2 years ago #

    What I have always done is:

    a) Login to WP dashboard.

    b) Go to general settings, change both WP install and Site URL to your new url

    c) your site will break...but dont worry

    d) move the complete root and all files to the new directory via FTP and refresh it will all be working fine

    if it does mixup you can always put this in your .htaccess:

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

  7. Rev. Voodoo
    Volunteer Moderator
    Posted 2 years ago #

    Will there be a problem with duplicate content?

    I'm by no means an expert here, but this shouldn't be a problem.

    Search engines will begin indexing your site at its new home. If you were running dupe sites at 2 URLs, it would be an issue... but you are moving.

Topic Closed

This topic has been closed to new replies.

About this Topic