I am dot net developer. I place web.config and index.html
page and write some code in web.config.
it opens the index.html default or startup page when I enter my website address in the browser.
Now my question is here, I have PHP cPanel and domain, I want to place index.html
page and open it as a startup page. but I found an irrelevant solution according to my problem statement.
How can I do this?
I tried, I placed the index.html page
in public_html
but the page did not open.
any solution, please.
2
Answers
Please, this code in
web.config
file in thepublic_html
folder.You can also set a priority of files execution in
web.config
file as:What is the web server you are using?
If you are using Apache or Nginx, it should load the index.html as default (Start) page. Make sure, you have the index.html in the web root directory.