On a shared hosting environment based on CentOS-Bash, Apache (with Nginx as a "reverse proxy"), PHP and MySQL I host a MediaWiki website. Normally, no webpage has a
I have created a CMS-agnostic contact form and placed its
.html file in my website's root directory. I can access the form by the pattern
example.com/contact.html and send emails to myself through it.
I might expand the contact form program by adding files such as
success.html and in any case I might add other
.html CMS-agnostic webpages in the future so in the long term I want to remove all
.html extensions in URLs.
how to remove all
.html extensions from all webpages of a website?
How could I ensure that no
.html file appears in a URL bar with any
.html extension file?
Perhaps there is some "brutal" APCRE (Apache Perl Compatible Regular Expression) directive solution for that? (A wildcard redirection?)