开发者

Content problem, any better solution? [closed]

开发者 https://www.devze.com 2023-04-09 06:51 出处:网络
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely solicit debate, a
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 11 years ago.

Currently i'm building an system that will let the user to create an small website inside their system. To access their website, user will type www.USERDOMAIN.mywebsite.com (just an example...)

Well, USERDOMAIN will be their username on my database, and mywebsite will be the system domain.

The user, (if he want's) can show his website on any domain, and i was thinking on how to link their domain with the information inside my database.

I thought on two ideas:

  • I can't give the main code to the final u开发者_开发技巧ser, so I just thought I'd give him an HTML page with an iframe targeted to the original content, but it would be an bad idea because i would have too much trafic from many websites, and everything will be on my database causing it to be slow down.

  • Create some basic tables on the domain that my client has acquired, and some files to get the data and work with them, any change on the content would be made by the main system, them all chandged data would be sent to my client database

I Think that the second solution would be better, but if you had an experience like it, something that you had think, it would be really great to share with me...

if you had any idea, just let me know what of the two options above you chose. Thanks guys!


I could be completely wrong here but if I understand right you want to do something like

www.userdomain.com shows the content of www.userdomain.mywebsite.com

Why not simply use CNAME records and create aliases that link the two? The user would need ot create the alias on their DNS settings but that would do it I'd think.

0

精彩评论

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

关注公众号