当URL未指定文件时,如何使我的网站加载特定文件?

How do I make my website load a specific file when the URL doesn't specify the file?

I also use WAMP if it helps...

For example... When the user visits http://mywebsite.com/magicpage/thispage/lmao I want the user to load the HTML file somefile.html

If you're using PHP, you can very easily include the contents of another HTML file within the current page.

<?php include_once("path/to/file"); ?>

This will still maintain the URL you have given, however, it will contain the contents of the HTML file after where you have put the PHP code.

Pro tip: If you have a header which you use on every page, you can define it on another file, and include it as said here. It reduces the amount of code you have to repeat.