LaboratorioHacker/status/master/.htaccess - Htaccess File

LaboratorioHacker/status/master/.htaccess

# PHP version to use
AddHandler application/x-httpd-php55 .php

<IfModule mod_rewrite.c>

Options +FollowSymlinks
RewriteEngine on
RewriteBase /

#RewriteRule ^status.json$  status.php?format=json [L]

# The following rule tells Apache that if the requested filename
# exists, simply serve it.
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]

#RewriteCond %{REQUEST_URI}::$1 ^(/.+)(.+)::2$
RewriteRule ^(.*)$ index.php [NC,L]

# Make the .git directory inaccessible
RedirectMatch 404 /.git.*$
RedirectMatch 404 /config.json

</IfModule>

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME, REQUEST_URI

Comments

Apache