[resolved] Changing blog location from root to subdirectory (4 posts)

  1. dellsadvice
    Posted 7 years ago #

    My WP blog is currently in my root directory (mydomain.com). I want to change my site so that it is in a subdirectory (mydomain.com/blog), so I can add different content to the root. My questions:

    1. How do I do this?
    2. I am not ready to add different content to the root. Is there a way to have visitors who go to mydomain.com be automatically directed to mydomain.com/blog until I add something to the root?
    3. Adding the subdirectory will change the URL of all of my posts. Is that going to mess up the Google search results that I get everyday?


  2. Arun
    Posted 7 years ago #

  3. krembo99
    Posted 7 years ago #

    Actually, If you will follow step one from sparun answer, step 2 (or question No.2 is irrelevant IMHO.
    Because then, people who will go to your root (mydomain.com) will automatically be directed to your blog (even if they will not see it in the address bar)
    as for question 3 - yes, It will affect the search results, but it will be ok again after a week or so.
    Google is an indexing engine, so now in the index you appear as (www.mydomain.com/something) .. when you change to (www.mydomain.com), it takes the index some time (varies) to update itself.
    People will still go to your site, but will probably see the 404 page, and then go to the root (you can do auto-redirect on the 404).
    You can accelerate this process by submitting a sitemap (XML) to google.

  4. dellsadvice
    Posted 7 years ago #

    That worked. Thanks for your help guys!

Topic Closed

This topic has been closed to new replies.

About this Topic