enridaga/shinkendo-uk/gh-pages/.htaccess - Htaccess File

enridaga/shinkendo-uk/gh-pages/.htaccess

RewriteEngine On
# Rewrite /foo/bar to /foo/bar.php
RewriteRule ^([^.?]+)$ %{REQUEST_URI}.php [L]
# Return 404 if original request is /foo/bar.php
RewriteCond %{THE_REQUEST} "^[^ ]* .*?.php[? ].*$"
RewriteRule .* - [L,R=404]

On Github License

Files

Download PDF of Htaccess file
REQUEST_URI, THE_REQUEST

Comments

Apache