Forum Moderators: Robert Charlton & goodroi
I want all visitors to see the .html version
Hopefully all the URLs to be served by static files have some common element/pattern within them.
$getPageName=$_SERVER['REQUEST_URI'];
if ($getPageName='some-page-name') {
echo file_get_contents('cache/some-page-name.html'); WITHOUT changing the url to /some-page-name.html and WITHOUT causing a browser redirect
RewriteRule configured as a rewrite ?
Rewrite (aka "internal redirect")
RewriteRule visible-url /real-source.html [L]
RewriteRule ^/this-example-page$ this-example-page.html [L] flag... RewriteRule ^this-example-page$ /this-example-page.html [L]