WordPress.org

Ready to get started?Download WordPress

Forums

WP Subdomains
3.3.1 Working (31 posts)

  1. lontongcorp
    Member
    Posted 2 years ago #

    Just edited to satisfy my 3.3.1 and got it working.
    Took a whole day so not fully tested, just for category I need.
    Please let me know if anyone interested, I don't know how to upload the file here :)

    Note.:
    Add simple subdomain URL Redirection function too.
    So in your virtual host web server you can set *.domain.com in the same directory. Will redirect to homepage bloginfo('url') if it's invalid subdomain.

    http://wordpress.org/extend/plugins/wordpress-subdomains/

  2. isnooks
    Member
    Posted 2 years ago #

    excellent congrats. been stuck on 3.2 as couldn't get it to work. please share link/code to isnooks [@] gmail [.] com

    regards

  3. lontongcorp
    Member
    Posted 2 years ago #

    Uploaded here

  4. adamroslan
    Member
    Posted 2 years ago #

    Hi lontongcorp.

    Thank you for make it compatible with 3.3.1 for category. Can you guide me how to make it works with Page? Thank you :)

  5. lontongcorp
    Member
    Posted 2 years ago #

    I'll look into it to work with Pages when had times.
    or we can wait original developers :D

  6. thwbaur
    Member
    Posted 2 years ago #

    Wonderful work there, lontongcorp! I sincerely hope that you can find the time to adapt the plugin also for Pages since that would mean that I can finally finish building my WordPress site!

    Where is that "donate" button???

  7. nezzard
    Member
    Posted 2 years ago #

    Hello, how to make it works with Author? Thank you :)

  8. lontongcorp
    Member
    Posted 2 years ago #

    sorry guys, had to finish my work for client first :)
    will look into Pages (and Author?) from now.

    Move it to my blog here as thwbaur asked the donation button :D

    Cheers

  9. thwbaur
    Member
    Posted 2 years ago #

    Nice :) I'll keep monitoring your progress with joy!

  10. chumbi
    Member
    Posted 2 years ago #

    Hi! Glad to see that someone's managed to install successfully the subdomains plugin in WP 3.3.1 I've been trying for a couple of days with no success
    I downloaded the plugin and configured it to make my only main category a subdomain and created a subdomain of the same name on the server But it doesn't work There's something I am missing, obviously, can anyone help?

  11. lontongcorp
    Member
    Posted 2 years ago #

    Please check and test from here for pages and author.
    Thanks

  12. thwbaur
    Member
    Posted 2 years ago #

    It appears that the rewriting that this plugin does, works correctly now! I have configured it to work with only one (1) page which it seems to do as it should. So far this seems to be a succesfull modification. I cannot yet test it completely, since I get a 500 server error on my subdomain when using the plugin. This might be an issue my webhost can resolve - I will contact him ASAP and let him look into the matter.

    For now I think important progress has been made by lontongcorp! Hope to hear more positive test results from others.

  13. thwbaur
    Member
    Posted 2 years ago #

    Update: the 500 error has something to do with my .htaccess file. When I rename it temporarily, the 500 error becomes a 404, not found. Am I supposed to modify .htaccess when this plugin is used?

  14. lontongcorp
    Member
    Posted 2 years ago #

    thwbaur, I use it in my project for category and page subdomain without changing the .htaccess file. No problem to me. Maybe it's your webhost server

  15. chumbi
    Member
    Posted 2 years ago #

    Just to say that the plugin is working now - there was a little correction to do at the webhost I haven't tested it for pages or author yet

  16. nezzard
    Member
    Posted 2 years ago #

    Show me yours .htaccess and whether to activate the wildcard?

  17. nwatts88
    Member
    Posted 2 years ago #

    Hi, I am very keen to use this, but I must be missing something. I used my web host's log in panel to register a new subdomain for my category, and activated it with the plugin on the WordPress dashboard, but when I visit it, I'm redirect d to my regular index page (and the LESS stylesheet script i've been using while making my site breaks in the process). Any idea what I've done wrong? My blog isn't finished yet, but the main domain is http://www.terraavocado.com and I am trying to get ghostfacevilla.terraavocado.com working as a category. (And the blog category too, but the web host, dream host, is taking ages to put it through)

  18. zechmann
    Member
    Posted 2 years ago #

    mine redirects to my homepage too :( http://soundklout.silencenogood.net Anyone know why?

  19. lontongcorp
    Member
    Posted 2 years ago #

    @nwatts88 @zechmann:
    Did you set the main domain in the settings: terraavocado.com (no www) ?

    @nezzard and others:
    No changes required to .htaccess for wildcard.
    Just set your main domain and subdomain root into same folder.

    Here's what I did to: boa-boa.com (please check it to see how it works, menu use categories subdomain)
    Domain Manager:
    boa-boa.com -> A -> SERVER_ADDRESS (x.x.x.x)
    http://www.boa-boa.com -> CNAME -> boa-boa.com
    *.boa-boa.com -> A ->SERVER_ADDRESS (x.x.x.x)

    Host cPanel
    @ (default of boa-boa.com) -> /__HOME_PATH__/public_html/
    * (all subdomains of boa-boa.com) -> /__HOME_PATH__/public_html/

  20. zechmann
    Member
    Posted 2 years ago #

    @lontongcorp just did that, but with no success. my blog is in a subdirectory, does that make a difference?

  21. wimpers
    Member
    Posted 2 years ago #

    @lontongcorp I have the same issue as zechmann. All categories are being redirected to my main page instead of applying the category filter

    DNS settings:
    inbrugge.com A IP of server
    *.inbrugge.com A IP of server
    http://www.inbrugge.com CNAME inbrugge.com

    Apache settings:
    <VirtualHost *:80>
    ServerAdmin my email
    ServerName inbrugge.com
    ServerAlias *.inbrugge.com
    ...

    In the main settings of the plugin:
    Main domain : inbrugge.com

  22. lontongcorp
    Member
    Posted 2 years ago #

    Hi zechmann,

    I don't think that's make a difference. Tested in my localhost, still no problem.

    @wimpers:
    I have few people emailed me asking that questions and still don't get what the problems are (I'm not sysadmin :)

    But I suspect it is much Apache problems than scripts

    Do you see category lists in settings page?
    All subdomain-enabled?

  23. wimpers
    Member
    Posted 2 years ago #

    Do you see category lists in settings page?

    Not exactly sure what you mean by this.

    All subdomain-enabled -> yes

    I checked and $wps_this_subdomain is actually containing the right domain but for somehow he doesn't filter out the messages which are not belonging to the right category. I logged below the sql queries and below is the result of a category page.

    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

  24. wimpers
    Member
    Posted 2 years ago #

    From what I understand is that he gets all the subdomains

    SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy = 'category' AND t.term_id = 4 LIMIT 1
                      134 Query     SELECT * FROM wp_category_subdomains WHERE cat_ID = 4

    This works ok

    Next he calls

    SELECT DISTINCT posts.ID FROM wp_posts posts JOIN wp_term_relationships ON posts.ID = wp_term_relationships.object_id JOIN wp_term_taxonomy ON wp_term_taxonomy.term_taxonomy_id = wp_term_relationships.term_taxonomy_id WHERE wp_term_taxonomy.taxonomy = 'category' AND wp_term_taxonomy.term_id in (12) AND posts.post_type != 'page' AND posts.post_status = 'publish'

    which is the actual posts of the category which is in $wps_this_subdomain

    But I don't understand why he next calls the posts for the other categories also. Which of course results in all posts.

    Hope this helps a bit?

  25. sublevel
    Member
    Posted 2 years ago #

    Yeah i would love for this to work for authors
    willing to donate if needed to get it to work with 3.3.2

    thanks

  26. Cipherlad
    Member
    Posted 2 years ago #

    Does anyone know how to get the filtering to work on the index.php page? I'm starting out with a completely barebones template, created some subdomain categories, and posts associated with them. On the index.php page, the links for the posts show the subdomain, so it appears I have all that set up... but it shows posts for all subdomains, not filtered for the subdomain in the url.

  27. reezolution
    Member
    Posted 2 years ago #

    i've tested the one by lontongcorp on 3.4 and its work just fine, except for the adminbar / toolbar.. it doesn't work / render properly on the sub-domains as it is on the main domain. is there anyway to make it behave like it should, lontongcorp?

  28. Jupiter_Dev
    Member
    Posted 2 years ago #

    Looking to update to current version 3.4 and extend functionality for WP Multisite by 6-29-12. I can, and will donate for contributions.Anyone interested? Thanks for all the great works so far. Really cool.

  29. stianjaco
    Member
    Posted 2 years ago #

    Anyone that have made this work on 3.4? I get the links to work, but it shows the main page instead of the category

  30. tazogamer
    Member
    Posted 1 year ago #

    Yes. It has been recently updated. Here is - WordPress Subdomain plugin, Revisited, 0.7.0 version.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic