Forumlar / Cotonti / Support / Mod_rewrite subdomain capabilities?

Just asking for some insight.

peptobismal
#1 2012-07-02 03:26

Okay, I did a quick search, so shut your mouths. ;)

I haven't gone through and tried it yet, but I got 20 some subdomains... was wondering if at all possible to set up mod_rewrite to utilize subdomain folders.

For example:
blahblah/forums
forums.blahblah.com

I have previous experience in utilizing mod_rewrite to change extensions to "folders" or basic ".html" files; however, did not know if there was a set back in using subdomains with or without changing the actual extensions.

Would this be just more of a simple little point a subdomain to folders in Cotonti core file skeleton, or...? Then use mod_rewrite to rewrite extensions...

Basically, wondering anyone else's experience in this; as I am unsure that if I do this and since Cotonti only knows the BaseURL type configurations... if doing this would mean my custom links go to subdomains and Cotonti generated links would then go to the folder designated and drop the subdomain.

Just curious.

Kilandor
#2 2012-07-03 01:17

It is completely possible.

I used to work with lombi back in the day and did a similar thing (long before cot_url). this was done by wildcarding the domain so mod rewrite handled any/all domains and via php would redirect out of needed.

Likely you cant get a wildcard and if for just forums you shouldn't need it.

You should beable to rewrite "forums" to forums.example.com just fine, depending on your setup you could either just symlink the folder to the core of cotonti. Or you should beable to mod_rewrite it to the url/path of the other.

But yes it should be completely possible. I just have nothing offhand from a working example to provide you to do it.

peptobismal
#3 2012-07-04 03:56

Yeah, wouldn't be just for forums, just an example. You worked with Lombi? I strongly dislike that Slovenian Dali-wannabe.. (Just kidding) I used to be a regular to his personal domain for awhile, til he got off LDU/Seditio.

Just wondering the like easiness of this, like say downloads.domain.com articles.domain.com etc. Pretty much if it's easy I think it would be nice to be able to utilize it so that every section of the site would be a subdomain, I mean it's not really a setback by any means to not be able to do it... just a curiosity, because it would be nice to tell someone to go clients.domain.com or something rather than domain.com/clients.php. As far as communication verbally and user-memoriness, if it's something I could be spending all night racking my brain on, I'm not really gonna stress it for the time being. :)

Kilandor
#4 2012-07-04 05:27

Its really nto that hard to make the rules for rewrite/cot to handle it. You just either have to wildcard your domain, or create dns entries for every domain you need.

http://en.wikipedia.org/wiki/Wildcard_DNS_record

peptobismal
#5 2012-07-04 05:51

Oky doky, I may revive this topic when my website is a little further into design completion, etc. Thanks for the insight.