Forums / Cotonti / Support / [problem] Page lists as subdomains

Trustmaster
#36970 2013-02-05 15:27

It's not a quick question at all, finetuning URLs for subdomains is not so easy to do.

In order to break the category path into a subdomain and a part after slash, you'll have to write your own functions to be used in rewrite rules, e.g. {my_page_url()}.

The forums rewrite is possible in a similar way. I can share some code with you if you're interested. It's not there by default because it uses lots of extra queries and affects performance. We need to scratch all forum URLs completely and change quite some code in order to have nice forums URLs by default.

You need $cfg['multihost'] = true for auth to work on subdomains and also check the cookiedomain setting, for multidomain sites it is usually set to something like ".example.com". Regarding your .htaccess, keep in mind that rules are applied top to bottom, so if the top rule hits, it won't even look for your bottom rule.

May the Source be with you!