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
http://goldfish.ilikefish.com
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 🙂
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… 😀
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
http://goldfish.ilikefish.com/my-post-about-fish
but should use
http://ilikefish.com/my-post-about-fish
Instead and only use subdomains when listing categories? If so I’ll try adding an option for that 🙂
The old plugin I am using doesnot redirect automatic. I like that. So if I click on http://www.domain.com/cat1/postname/ it will go to this url as it is written here… so it does not redirect to cat1.domain.com/postname/. 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.
Thanks.
Well it shouldn’t be able to be found using http://www.domain.com/cat1/postname/ and http://cat1.domain.com/postname/ as that would cause duplicate content problems in search engines which isn’t good, that’s why it redirects
Yes, that is true. It is more important that the pages get subdomained too… 😉
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.
I am anxiously awaiting the update of the plugin. Any news on when the ‘subdomains from pages’ functionality will be working. Thanks.
I haven’t had time to have a proper look yet, too busy with other projects, will try having a look as soon as I can 🙂
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.
@Not John Chow->If you want customizable menu links you can try and use sticky menus (http://tela-web.com/wordpress-plugins/sticky-menu/). Have fun!
I’ve just tested and pages to subdomains is working for me, the only issue is that it currentley doesn’t redirect from blog.com/page-name to page-name.blog.com, which I will fix.
Ok, good work. I will wait for the complete update before testing it…
Hello, from Vienna,
Is it possible or does anyone have experience in using this plugin in a subdomain. What I mean is, would it be possible to have a blog unter blog.ilikefish.com und than have the categories like http://goldfish.blog.ilikefisch.com ?
sorry, I forgot to say:
Thank you 😉
kind regards from Vienna
Andy.
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.
http://ismbs.com
I just want to thank the author for taking the time to add subdomain functionality to wordpress! Great job!
@Vaugn-> Looks to me like the permalink structure is not set correct, because it cannot find http://music.ismbs.com/artists/ and the normal structure http://ismbs.com/music/artists/ doesn’t work also.
Can you get it working if you switch off the subdomain plugin?
@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%/
Thank you, Dempsey! That did the trick. One little something I noticed is that sub-category links are being written out as:
mainCategory.myDomain.com/subCategory (this isn’t working)
whereas if I type the following into the address bar, it works just fine:
subCategory.myDomain.com
Any idea why this may be the case?
Yea that is the issue I am currently working on, hopefully I will have a fix for it soon 🙂
Just to update any people that have subscribed to updates, the plugin has been updated and now lists posts in sub-categories 🙂
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 …
Andreas – Thanks for pointing that out, seems a weird problem but I’ll take a look 🙂
The plugin has been updated to 0.4.3 and now works on posts with tags!
this don’t work for me 🙁 tags or posts gives 404 and subdomain.4addicteds.com redirect to 4addicteds.com// , yes with 2 slashes .
i got read of the second slash, but all posts category.4addicteds.com/post are 404 errors… 🙁 and the tags too.
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?
BTW, how do i change this plugin to work for tags?
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?
but it transform only categories in subdomains. and i have already working with tags. so i need this to work for tags 🙁 please ?
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?
Cheers
B
I haven’t had a look yet no, I will upgrade my test blog to 2.6 and see if I can get it working 🙂
Hello.
I have a problem, because WP pinging url: domain.com/category/catname.
I think it should ping url catname.domain.com
Don’t u think?
Its problem because google indexes articles with wrong url…
Can u fix it or tell how fix it?
Ah yea, I’ll look into that, should be able to hook onto that and change it 🙂
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 …
I’ll try add an option to use tags instead of categories soon, my birthday tomorrow though so won’t happen for few days at least.
Happy Birthday Adam! ( btw, today is my birthday, no joke 😀 2 Aug)
again same problem..
same problem occured with WP v2.6..
sub-categories not working again:(
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:
subdomain.domain.com/url.html redirects to domain.com/subdomain/url.html, but the user still sees it as subdomain.domain.com/url.html rather than rewrite the url entirely.
Whoops forgot to subscribe to email notifications.
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!
its not about this plugin, its about query. just google it!
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?
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 http://finances.unanimocracy.com/
Scroll to the bottom, and look at the link for “Older Entries”. This link goes to http://www.unanimocracy.com/page/2/ which ends up in some sort of recursive loop and no page shows. I’d assume it SHOULD go to http://finances.unanimocracy.com/page/2/ but that doesn’t work, either. Is this the “feature” that people are asking for regarding “support pages” or have I done somethnig wrong?
Yes it’s bug. I have the same problem.
Hey… dempsey when will be a new version with fixed this bugs?
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!
-Brad
Hope it works out for you 😀
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.
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 🙂
Thanks!
I added the custom field but now I get the following permalink: http://page1.mysite.com/page1 or http://page1.mysite.com/page1/sonOfPage1
Did I do it wrong?
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?
Cheers,
Will
A follow up to my previous comment, I now just get a 404 error.
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.
I am using wordpress 2.5 but the sub categories are not working
I got subcategories working but when i go to archive I get this
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
Check out my site http://www.couponcodesbox.com
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.
The truth is I’m using worpdress 2.2.2. Seems like the only version that works with this plugin.
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.
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!
I can’t get it to work with TAGS and posts
GO to http://www.for-mac.cc/automatic-form-filler-for-mac-os-x.html
Scroll to the bottom, and look at the link for “Tagsâ€. Th tag links can’t be accessed.
and you can see that only the category has made to subdomain , the posts are not.
Please help
Thanks
If possible everyone should use wordpress version 2.2.2 because it seems to work fine
For all of those who have been struggling with this plugin, I released an fixed version that addressed the following issues:
1. Plugin not working in WP2.6
2. Pages not being subdomained
3. Admin pages not working properly
Check: http://blog.youontop.com/wordpress/wordpress-category-as-subdomain-plugin-41.html
Good luck and please comment with any troubles you run into.
If anyone is interested I basically rewrote this plugin and added some more features and some bug fixes.
It is available from my website here:
http://webdev.casualgenius.com/projects/category-subdomains/
or from it’s launchpad page here:
https://launchpad.net/wordpress-csd/
It is being actively developed and I welcome bug reports and feature requests.
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.
Does i t works also in WP 2.7? If not, do you plan version for 2.7?
Thank you
Vojtech
I have it working on a 2.7 blog, but I don’t really have time to support it if it doesn’t anymore.
Alex Stansfield has updated the plugin over at his site: http://webdev.casualgenius.com/category/wp-subdomains/
I am using the latest WordPress Subdomain and WordPress v2.7 and subcategories still not working. Any ideas?
Hey, this is weird.. the download link redirects me to http://demp.se/y/2008/06/14/category-subdomains-043-works-with-tags/ which tells me to come back to this page and download it. Any ideas what’s going on?
Ni Nathan, the plugin is now developed at http://webdev.casualgenius.com/projects/wordpress-subdomains
Oh, ok, cool, I saw that one and didn’t realize it was the same thing. You might want to change the link in your post though.