简体   繁体   English

如何在线获取HTML文件?

[英]How do I get my HTML files online?

I've built a couple of web pages in HTML. 我用HTML构建了几个网页。 How do I go about getting them on the internet so that I can type in my website name and see the files. 我该如何在互联网上获取它们,以便输入网站名称并查看文件。 I've bought the "domain name" I want from godaddy but I don't understand how to put my files on it. 我已经从godaddy购买了想要的“域名”,但是我不知道如何将文件放在上面。 Thanks, Rob. 谢谢,罗伯。

You have to get hosting set up. 您必须先设置主机。 Buying the domain name is the first part, but you now have to buy hosting so that your files have a place to live. 购买域名是第一步,但是现在您必须购买主机,以便文件可以居住。 After you have hosting (which is just a computer/server somewhere that you put files on) you have to point your domain name to your webhost by setting the nameservers at GoDaddy to the ones your new webhost gives you. 托管后(只是放置文件的计算机/服务器),必须通过将GoDaddy上的名称服务器设置为新的虚拟主机为您提供的名称服务器,将域名指向虚拟主机。 There's a lot more info on this stuff at Syntaxxx.com . Syntaxxx.com上可以找到有关此材料的更多信息。 I hope this helps. 我希望这有帮助。

Upload them via ftp to your domain's/account's root directory or just use the built-in Godaddy file uploader if you have some hosting plan with Godaddy. 通过ftp将它们上传到您域/帐户的根目录,或者如果您对Godaddy有一些托管计划,则只需使用内置的Godaddy文件上传器即可。 If you don't, sign up for a free web hosting service and make sure your Godaddy domain forwards to that free hosting service's address for your site. 如果不这样做,请注册免费的虚拟主机服务,并确保您的Godaddy域转发到该站点的该免费主机服务的地址。 Godaddy can do the forwarding in such a way that when you go to www.yourdomain.com, even if it's forwarding to www.00freehosting.com/something/you, it can still just say www.yourdomain.com. Godaddy可以通过以下方式进行转发:当您转到www.yourdomain.com时,即使它正在转发到www.00freehosting.com/something/you,它仍然只能说www.yourdomain.com。 Also, make sure you have an index.html or index.php, which is the default file that will be looked for when you navigate to a page. 另外,请确保您具有index.html或index.php,这是导航到页面时将查找的默认文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM