Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Having http://site.com/category/xyz = http://xyz.site.com/

I would like to move the content from each category to its equivalent subdomain blog, so that when I will access http://site.com/new-post/, where the post belongs to category XYZ, site.com will do a 301 redirect to http://xyz.site.com/new-post/

So, is there any other way besides then the hardcore extracting data from database and move it to its new place?

share|improve this question
    
I think its possible but needs serious custom code to accomplish this. I suggest to check wordpress.org/extend/plugins/wordpress-mu-sitewide-tags plugin code for a start. –  Ünsal Korkmaz Jan 19 '13 at 15:19
    
Have you had a look at the Move to Subsite plugin? It sounds perfect for what you want to achieve –  bungeshea Jan 20 '13 at 6:55
    
Are you sure WordPress Multisite isn't what you are looking for? You can easily achieve that in a multisite. –  its_me Jan 21 '13 at 8:51

1 Answer 1

It's very simple:

  1. download and install this plugin: WP-Universe

    WP-Universe creates a blog universe based on categories of a WordPress blog.

  2. go to Manage Category
  3. edit the category description with the category subdomain (check the install guide)
    http://cat-slug.example.com/
  4. now make your subdomains
et voilà

share|improve this answer
    
I'll give it a try. Thank you –  w0rldart Jan 22 '13 at 21:33
    
I'm sorry for my English. 'm stupid Italian –  funji Jan 22 '13 at 21:34
2  
not stupid, maybe crazy ;) Stupid is very hard in the english words. –  bueltge Jan 24 '13 at 15:53
    
Nice little 4 years old gem! In my localhost multisite it is not working, maybe with a MS sub-domain set-up it'll need some .htaccess rules... No problem with Engrish, we can try to correct it, but your French is not good either ;) –  brasofilo Jan 24 '13 at 20:03
    
Couldn't make it work in single site neither, but nice concept behind, maybe workable with more brain-power. –  brasofilo Jan 24 '13 at 23:10

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.