Forums / Cotonti / General / User Names as Subdomains

Eugene
#36827 2013-01-17 09:08

Please, advice how to implement rewrite of user names as sub-domains of web-site?

I hope it is possible to tweak it without editing .htaccess.

So, I try this in urltrans.dat:

users	m=details&u=*			{cot_url_username()}.{$_host}

and this

users	m=details&u=*			http://{cot_url_username()}.{$_host}

in first case link is relative to domain. In second case, it didn't work.

Please, help with this!