LeoValadares/PHPVSF/master/.htaccess - Htaccess File

LeoValadares/PHPVSF/master/.htaccess

Options +FollowSymLinks -Indexes

# Enalbes url rewriting
RewriteEngine On

# Use the RewriteBase property if your website is not located on the server's document root.
# You should put the desired document root relative to the http server document root like:
# "/current/document/root/
RewriteBase /phpvsf/

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.+)$ Public/index.php?path=$1 [QSA,L]

ErrorDocument 403 http://localhost/phpvsf/index

#Fobrids access to php scripts hosted on the server
<Files *.php>
    Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1
</Files>

# Allows only the document root index.php to be accessed, making it the only entrypoint
# establishing the url routing logic behind the framework
<Files index.php>
    Order Allow,Deny
    Allow from all
</Files>

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME

Comments

Apache