Creating a custom url for an static html page
Creating a custom url for an static html page
I need to create a page like http://www.example.com/strong
and the file to support that are inside my docroot/strong/index.html
.
http://www.example.com/strong
docroot/strong/index.html
Inside my docroot there are other folders with their index file as well. For example
docroot/site1/index.html
docroot/site2/index.html
docroot/strong/index.html
docroot/site1/index.html
docroot/site2/index.html
docroot/strong/index.html
So when user types in http://www.example.com/strong
it should open docroot/strong/index.html
without changing the URL. Can I achieve this?
http://www.example.com/strong
docroot/strong/index.html
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
if you have directoryindex set as index.html in http.conf you have to do nothing.
– Abhishek Gurjar
2 days ago