jonchang/fake-mechanical-turk/master/.htaccess - Htaccess File

jonchang/fake-mechanical-turk/master/.htaccess

# Redirects all requests to nonexistent files to index.php, passing the request
# path as a parameter `p` in the query string.
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /index.php?p=$1 [L,QSA]

# Don't let people peek at our SQLite, log files, configuration files.
<Files  ~ ".sqlite$">
    Order allow,deny
    Deny from all
</Files>
<Files  ~ ".input$">
    Order allow,deny
    Deny from all
</Files>
<Files  ~ ".ini$">
    Order allow,deny
    Deny from all
</Files>
<Files "log.txt">
    Order allow,deny
    Deny from all
</Files>

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME

Comments

Apache