Guest
01 Apr 2013 15:59

Great Cobalt allow users to have their own homepage category balabala…but i want to know whether a user can set his own domain?(actually just subdomain),for example,andy is a vendor of website:www.xxx.com,can he set his homepage url as andy.xxx.com and bound this domain with his shop on www.xxx.com(of course build via Cobalt:)) on front-end?

Thx~

Best regards!

Last Modified: 02 Mar 2014


Sergey
Total posts: 13,748
02 Apr 2013 03:30

It is not in Cobalt because you cannot make it purely based on Cobalt. You have to configure your server.

But it is possible to do.

You can create domain alias that *.domain.com is an alias to www.domain.com. That is it. You can enter sergey.domain.com and www.domain.com will be opened.

Then you can create small plugin that will parse domain, find user by subdomain and set appropriate URL parameters.

What i want to say it is not hard to do if you know what you are doing. But it is imposible to do with Cobalt because it cannot control server settings or configuration.


pepperstreet VIP
Total posts: 3,837
05 Apr 2013 12:07

Then you can create small plugin that will parse domain, find user by subdomain and set appropriate URL parameters.

Interesting! Would like to see a tutorial or usecase article in the knowledgebase area ;-)


Sergey
Total posts: 13,748
07 Apr 2013 23:43

Would like to see a tutorial or usecase article in the knowledgebase area

This is not related to Cobalt at all. This is general knowledge of server technologies and HTTP protocol. In fact you can do that to any extension. And requires a lot of hacks.

For example you need subdomain name. You cannot use user name because it can contain non-Latin characters. So you need to add interface too change user subdomain with all required validation. Also you need to hak core router and change URL to subdomain if there is USER_ID in the URL when you create SEF links. And some other things. But not even a word about Cobalt :)


Sergey
Total posts: 13,748
08 Apr 2013 11:12

It is possible in terms that URL part may contain any characters. But it also should be one one profile level. And this might be done very easy just by creating your own router.php

Powered by Cobalt