Mobile app version of vmapp.org
Login or Join
Nimeshi995

: How to store html files in /htdocs directory? I am beginner, and i want to store .html files in the /htdocs(root) directory in apache (xampp server). I have server name as example.com (localhost)

@Nimeshi995

Posted in: #Apache #Server

I am beginner, and i want to store .html files in the /htdocs(root) directory in apache (xampp server).

I have server name as example.com (localhost) and I want display login.html file after the index.html page. but, I don't know how to store webpages to server and how to view them on browser?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Nimeshi995

1 Comments

Sorted by latest first Latest Oldest Best

 

@Shelley277

Inside of your htdocs folder you should create another folder. Call it something like /site1 and put both of your index.html and login.html files. To view your files, first make sure that your XAMPP is up and running and then type in the following URL into your browser:
localhost:8888/site1/ (this will open your index.html page)
localhost:8888/site1/login.html (this will open your login.html page)


Note: 8888 is the default Apache port but if you are using a different one then substitute that part of the URL.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme