Category Subdomains Plugin for WordPress 2.5

The last few weeks I have been looking for a plugin for WordPress which would let me use subdomains of the site as a category, eg

Which would list all the posts in the goldfish category.

I went off on a Google search and I found an old plugin called Subster Rejunevation, but it hadn’t been updated for a while and although someone else had modified it to work for WordPress 2.3.x, I still couldn’t get it to work.

I decided to have a look through the code to see if I could get it working for WordPress 2.5, not thinking I would have much luck, but a few hours later and I seem to have it working!

Obviously I haven’t done the majority of the work on this plugin, I have just modified it to work with the latest version, but the original author has said he doesn’t support it anymore so I thought I’d release it and change the name too just so that more people are likely to find it when trying to search for something to do the job.

So here it is: Download Category Subdomains Plugin for WordPress 2.5

It will now only work for WordPress 2.5, not any earlier versions, but that shouldn’t be a problem for anyone. If it doesn’t work for you or you find any problems, let me know and I’ll see what I can do πŸ™‚

72 Replies to “Category Subdomains Plugin for WordPress 2.5”

  1. First of all, thank you for the good work.

    I have a problem with pages to subdomains. I used ‘subdomain_me’ set to true, but the subdomain does not work on pages(WP 2.5).

    In the old version(0.34 and WP 2.0.5) this was working on my website. I tried getting the new 0.38 version working on WP 2.3.3 but no success.

    Further I would like to be able to switch off the automatic redirect to the subdomain when you click a link in the blog, but the sub-domain should still keep working if you type it in the browser. Is that possible and how?

    Hope you can help me out… πŸ˜€

  2. Thanks πŸ™‚

    Ah I didn’t look at the pages code at all, I’ll try have a look this weekend.

    I was just trying to see if I could get this plugin working for my own use and then thought I’d release it afterwards, which is why not everything may be fully working as it used to atm.

    Do you mean so it’s not like

    but should use

    Instead and only use subdomains when listing categories? If so I’ll try adding an option for that πŸ™‚

  3. The old plugin I am using doesnot redirect automatic. I like that. So if I click on it will go to this url as it is written here… so it does not redirect to But however the page can also be found by using the subdomain url.

    I hope you can figure out what I mean… πŸ˜‰

    Looking forward to the update.


  4. I am not following the conversation very well but, I do have a question: Can I use this plugin to have a page tab on one blog point to a different blog? Or in other words, I would like to have a blog that has sub domains or other blogs as page links.

  5. I am anxiously awaiting the update of the plugin. Any news on when the ‘subdomains from pages’ functionality will be working. Thanks.

  6. Not John Chow – not sure exactly I understand what you mean but I don’t think so no, this just lets you use categories from the same blog as subdomains.

  7. I’ve just tested and pages to subdomains is working for me, the only issue is that it currentley doesn’t redirect from to, which I will fix.

  8. I’m a little confused…

    Can someone please take a look at the following url and give me an idea what is wrong? I can’t figure out how to use this plugin.

    I just want to thank the author for taking the time to add subdomain functionality to wordpress! Great job!

  9. @Andreas – I have not tested it, but I’m fairly sure it wouldn’t work the way the plugin is currently coded, I will look into adding support for that πŸ™‚

    @Vaugn, I think you may have to have your permalink structure set to /%postname%/

  10. Thank you, Dempsey! That did the trick. One little something I noticed is that sub-category links are being written out as: (this isn’t working)

    whereas if I type the following into the address bar, it works just fine:

    Any idea why this may be the case?

  11. hello,

    As I already said cool plugin. Maybe someone encounter the same problem: Everything works fine but as soon as I save Tags with the posting (wordpress-built-in or with Simple Tags) via editing or initial publishing, the posting “loses” its subdomain and changes from subdomain.domain.tld/postname/ to http://www.domain.tld/postname/. Hmm …

  12. this don’t work for me πŸ™ tags or posts gives 404 and redirect to , yes with 2 slashes .

  13. It started working right now, sorry for my dumb comments. Seems it took some time for DNS to propagate in servers(as my hosting support said).

    However i don’t use categories. How can i change this to work for tags?

    1. To work completly with tags instead of categories? Isn’t the general idea of tags that you can use multiple tags and categories you tend to just use one?

      1. but it transform only categories in subdomains. and i have already working with tags. so i need this to work for tags πŸ™ please ?

  14. Hi – I’ve been using a variation of this plugin for a few years now and am hoping to use it again for a wordpress project I’m revitalising.

    My problem is that I want the login information to be persistant across subdomains – ie, the wordpress cookie should be shared whichever subdomain you’re on. This used to work fine pre-WP2.5 but it’s now borked.

    I believe it will take a re-jigging of both the `sd_wp_login()` and `sd_wp-logout()` functions and I’m just wondering if you’ve looked at doing this yet?



  15. Hello.

    I have a problem, because WP pinging url:

    I think it should ping url
    Don’t u think?

    Its problem because google indexes articles with wrong url…

    Can u fix it or tell how fix it?

  16. I already have thousands of posts and tens of tags. i can’t change all to categories. how can i make the plugin to work for tags ? please …

  17. This is a great plugin, but my webhost does not allow httpd.conf access for any reason.

    Has anyone gotten this to work by setting up .htaccess files for each subdomain to redirect to the main domain with the directory? I’m going to try it this week. The thing is, I’d like the redirect to KEEP the subdomain structure when visiting the main domain, which I think may not be possible.

    Here’s what I want: redirects to, but the user still sees it as rather than rewrite the url entirely.

  18. Update:

    I did NOT have to do anything funky with htaccess. Instead, I just set up DNS aliases on the host end, and it works GREAT. Very, very happy.

    The only thing now I wish I could do is change the “title” of each subdomain to the new title of that category instead of having the main blog title for each.

    Thanks for this plugin, it’s fantastic!

  19. Hi

    I can’t seem to toggle the “make category” subdomain option in wordpress 2.6.

    Is it just me or is it broken in WordPress 2.6?

  20. Found a bug that I haven’t been able to find a solution to via Google…

    On my primary domain, if you click on a link that takes you to a subdomain via this plug-in, the “Older Posts” button doesn’t work. Example:

    GO to

    Scroll to the bottom, and look at the link for “Older Entries”. This link goes to which ends up in some sort of recursive loop and no page shows. I’d assume it SHOULD go to but that doesn’t work, either. Is this the “feature” that people are asking for regarding “support pages” or have I done somethnig wrong?

  21. Oh, I was so sad when I saw the original author quit working on this plugin, and then something magical happened you started working on it! YEAH!!!! I’m planning on installing it this weekend. Hope it works well enough for my uses. Keep up the good work!


  22. Was wondering, how would I make a page into a subdomain? Didn’t see a checkbox or anything (running 2.6).

    Also, looks like ‘Make Subdomain’ checkbox no longer works in 2.6 and all categories are “subdomained” by default.

    1. From the Plugin source:

      To make pages act as subdomains set a custom field with the key of subdomain_me to “true”

      Ah, yea that may be broken atm, I tried switching it to a checkbox for not making it a subdomain, will try to fix in next release πŸ™‚

  23. I’ve been trying this out — I’m running WP2.5 and my host, Bluehost, seems to reject the fact that it’s creating a subdomain and claims that “there is nothing on this page yet!”

    Anyone know if this can be fixed?


  24. A.B. Dada, how did you set up DNS alias?

    Like you, I do not have access to the httpd.conf file. I’ve installed this plugin but every category and page that I clicked on pointed to 404 error. But the address bar did show the name of the category.

    1. Coupon Codes,

      What are you doing to get this to work? I am getting some weird stuff in WP 2.6.2 on a site. You seem to have this thing working. BTW, in Firefox Mac it seems to be working correctly.

  25. Will that problem GiladG mentioned be fixed any time soon? This is a great plugin but I don’t want to make every one of my categories into a subdomain, I just want to make a single page into a subdomain.

  26. I should read the replies better. I see Coupon Codes is using version 2.5. Sorry about that. So the question is when will the plugin be updated for 2.6+ Any ideas? Thanks!

  27. First , Thank you and thank you for your plugin.

    Now I want to ask if you will update the plugin to WordPress 2.7Γ£β‚¬β€š

    Mostly I make WordPress as a CMS. SO this plugin is very useful.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.