开发者

Upload the web site into the server [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.

Want to improve this question? Add details and clarify the problem by editing this post.

Closed 8 years ago.

开发者_JAVA技巧 Improve this question

I can upload the web pages which is in html to the server and after uploading the link for that is www.dhtc.lk/about_us.html

But I need to display it as www.dhtc.lk instead of above name and please guide me how to do this and my hostname is dhtc.lk

Please send me the solution for this. Thank you


Try to rename about_us.html to index.html


Rename about_us.html to index.html.

index.html is the first HTML file the server shows when loading a folder (in this case, the root folder, or /).


Now sure what exactly you want but you can add a welcome file to the web.xml like this:

<welcome-file-list>
    <welcome-file>about_us.html</welcome-file>
</welcome-file-list>


To get your host to be coming up with www.dhtc.lk, you need to add a DNS entry to point www.dhtc.lk to the same host. Talk to your ISP to get this done.

Also, had a look at your site and looks like you have created each page in a separate directory. You need to save each page as a simple .html file and put all of these in the root directory of your web server. I recommend you read a bit more on web hosting.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜