Results 1 to 4 of 4
  1. #1
    ABW Ambassador writerguy's Avatar
    Join Date
    January 17th, 2005
    Location
    Springfield, Missouri, USA
    Posts
    3,248
    I'm confused about moving a WordPress blog -- enlighten me, please
    Here's the deal. I know it's pretty simple to move a WordPress blog. But my problem is figuring out how to 1) move the blog from my root directory to http://www.mydomain.com/blog, 2) redirect the URLs so I won't lose everything that's indexed, and, 3) put a new template in the root directory.

    I hope that's clear enough.

    I assume I can just move the blog from http://www.mydomain.com to http://www.mydomain.com/blog -- then install my template pages in http://www.mydomain.com . What gets tricky is trying to understand how and/or whether I can create a 301 redirect so the currently indexed pages and posts will connect to the same pages/posts in the new /blog directory.

    And how will that effect Google et.al. as they index the new template pages??

    Confused? I am!

    Thanks.
    Generate more fake news.

  2. #2
    Member
    Join Date
    February 21st, 2007
    Location
    Seattle, WA
    Posts
    75
    So, generally speaking you're thinking about the right issues.

    1. In the general settings, there are two fields for the wordpress installation address and the wordpress url (which can be different from the installation address).
    2. You're going to want to get smart on mod_rewrite to handle the url rewriting. Obviously the code you'll need to use depends on your current url structure. I thought this guide was good: http://www.sitepoint.com/article/guide-url-rewriting
    3. I'm not sure I understand this question.

    Since wordpress also maintains its own url rewrite code, you may want to actually move the installation so that you don't run the risk of clashing htaccess files.

  3. #3
    ABW Ambassador writerguy's Avatar
    Join Date
    January 17th, 2005
    Location
    Springfield, Missouri, USA
    Posts
    3,248
    Quote Originally Posted by davenaff
    So, generally speaking you're thinking about the right issues.

    1. In the general settings, there are two fields for the wordpress installation address and the wordpress url (which can be different from the installation address).
    2. You're going to want to get smart on mod_rewrite to handle the url rewriting. Obviously the code you'll need to use depends on your current url structure. I thought this guide was good: http://www.sitepoint.com/article/guide-url-rewriting
    3. I'm not sure I understand this question.

    Since wordpress also maintains its own url rewrite code, you may want to actually move the installation so that you don't run the risk of clashing htaccess files.
    Thanks, Dave. I appreciate the help. I'll check out that url guide you've linked to there.

    As far as "3" is concerned -- I have a datafeed template consisting of 2 php files and an includes folder with 8 or 10 includes files in it. I'm going to set that up in the root directory and make the current WP install work out of the /blog subfolder. I was wondering, if I figure out how to save the indexed links from the current WP install in root, how do I work all that out in a way that the new urls from the datafeed templates which will be in root won't be redirected or messed with by the WP install in /blog?

    That's probably not much clearer, is it??
    Generate more fake news.

  4. #4
    Member
    Join Date
    February 21st, 2007
    Location
    Seattle, WA
    Posts
    75
    OK, I get it. This should be taken care of if you do #2 correctly (and presuming that the URLs don't clash with your wordpress urls).

    When you write your mod_rewrite code to handle the wordpress urls, you'll need to make sure you handle each of the types of urls that wordpress generates. It can vary by installation, but you'll want to make sure that your categories, tags, archives as well as your posts pages are properly redirected. This typically means a mod_rewrite line for each page type.

    I'd recommend that you create a set of urls that you use to test your rules. There should be a current url of each page type and several new urls from your new templating engine (don't forget your rss feeds, etc.).

    Once you've written the rules, test each url to make sure it works.

  5. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Featured: Moving away from Joomla & Wordpress
    By teezone in forum Midnight Cafe'
    Replies: 14
    Last Post: June 12th, 2012, 10:06 PM
  2. Featured: Moving away from Joomla & Wordpress
    By teezone in forum Blogging, Mobile and Social Media
    Replies: 9
    Last Post: May 26th, 2012, 11:10 AM
  3. Moving Wordpress & Testing New Host
    By superCool in forum Blogging, Mobile and Social Media
    Replies: 3
    Last Post: June 7th, 2011, 02:22 AM
  4. Moving WordPress from subdirectory to root
    By meadowmufn in forum Blogging, Mobile and Social Media
    Replies: 5
    Last Post: August 24th, 2010, 02:51 PM
  5. Moving a blog to Custom URL
    By TeamCasey in forum Blogging, Mobile and Social Media
    Replies: 18
    Last Post: December 30th, 2009, 02:57 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •