开发者

CPanel: How to use two different domains in one hosting account, keeping url?

开发者 https://www.devze.com 2023-01-28 12:36 出处:网络
Right now there\'s two different accounts, with both domains having each their own hosting account, for similar website (let\'s say domain.fr and domain.co.uk)!

Right now there's two different accounts, with both domains having each their own hosting account,

for similar website (let's say domain.fr and domain.co.uk)!

I've merged the two websites into one (currently hosted as 0.0.0.0/site/language ),

making it multilanguage! The script just need a prefix on root,

such as like www.domain.com/english/开发者_如何学Go or www.domain.com/french.

This works as expected, if only a domain is used, but I would like to use two different domains (domain.fr / domain.co.uk).

So, I want to catch the current request URL, to know what language to display. What's important is that, the request urls keep persistent.

For example,

http://domain.co.uk/language_english
http://domain.co.uk/language_english/somepage.php
http://domain.co.uk/language_english/somedirectory/someotherpage.php

While,

http://domain.fr/language_french
http://domain.fr/language_french/somepage.php
http://domain.fr/language_french/somedirectory/someotherpage.php

This two domains are actuall hosted in same hosting account, let's said

127.0.0.1/language_variable/somepage.php

Any suggestions or good practices?


If I got your question , It's a feature in Web Hosting's solution which is called Addon Domains and depend on hosting company that how many Addon Domain they let you to put into one account !

0

精彩评论

暂无评论...
验证码 换一张
取 消