MrSp33dy123/TheMemeldex/master/site/subcomponents/restrictedaccess/.htaccess - Htaccess File

MrSp33dy123/TheMemeldex/master/site/subcomponents/restrictedaccess/.htaccess

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.+?)/?$ $1.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^(.+?)/?$ $1.html [L]

ErrorDocument 404 /404errorpage.php

AuthName "Admin Required"
AuthType Basic
AuthUserFile .htpassword
require valid-user

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME

Comments

Apache