许多域名 [英] Many Domains

查看:72
本文介绍了许多域名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有网站我想翻译其他语言,运行网站有单独的评论和论坛。


我想先制作瑞典和波兰网站,如果用户获得邀请他在.sw注册,他在瑞典网站和国际(.com)获得账户。但是,如果他被禁止/警告,他也被禁止。


国际网站的工作人员可以在所有网站上管理(编辑,删除)他的所有文件。 sw网站只能管理自己的文件。


如果用户在.sw网站上传他的文件,它会被上传到.sw和国际,前面是[hu]。对于它...如果文件上传到国际网站,它只在那里上传,在其他任何地方都没有。


对于国际(.com)网站,每个用户都可以在他的个人资料中选择想要查看所有网站上的国际网站文件或全部。


每个网站都有自己的:论坛,评论,新闻,民意调查和博客。


我该怎么做才能保持其他网站的功能相同,换句话说,如果我改变其他网站的PHP代码效果?


并使用一个数据库用于站点或用于每个站点它自己的数据库?

i have site i want to translate it other languages, run the site with separate comments and forums.

I was thinking to make swedish and polish sites first, If user gets invite he registers in .sw, he gets account in swedish site and in international (.com). but if he is banned/warned in one, he is banned in all other too.

staff in international site can manage(edit,delete) all his files, in all sites, .sw site can manage only their own files.

if user uploaded his files in .sw site, it is uploaded to .sw and international wtih [hu] in front. for it... If files is uploaded into international site, it is uploaded only there, nowhere else.

For international (.com) site each user can choose in his profile if he wants to see only international site files or all, from all sites.

Each site has it''s own: Forums, comments, news, polls and blogs.

how can i do that put keeping the functionality the same for the other sites, in other words if i changed the php code in site effect the others ?

and use one DB for the sites or use for every site it''s own DB ?

推荐答案

那么你为每个站点重写了一切吗?每个站点都有不同的数据库吗?如果没有,您是否记录了用户所属的网站?你能吗?
So have you re-written everything for each site? Does each site have different databases? If not, do you record which site a user is part of? Could you?



那么你为每个网站重写了一切吗?
So have you re-written everything for each site?



我只是为整个网站制作结构,我需要良好的结构,对于论坛来说,每个网站都是好主意有自己的数据库为自己的网站,我只需要翻译,只需要改变每个域的功能相同。

I''m only making the structure for the whole sites, and i need good structure for them,for the forums it''s good idea for every site to have there own DB put for the site it self i need only the translation only that will be changed put the functionality the same for every domain.


每个网站是否有不同数据库?
Does each site have different databases?



i计划注册每个网站以拥有域名。

i plan to register for each site to have there domain name.


嗨。


您可以让所有域指向同一台服务器,并根据客户端实际请求的URL提供内容。


如果你有 example.com example.pl example.se ,都指向同一台服务器,这将根据用于连接的URL打印欢迎消息:
Hi.

You could have all domains point to the same server and serve content based on the URL the client actually requested.

Like, if you had example.com, example.pl and example.se, all pointing to the same server, this would print a welcome message based on the URL used to connect:
展开 | 选择 | Wrap | 行号


这篇关于许多域名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆