ale-php/php-br/master/web/.htaccess - Htaccess File

ale-php/php-br/master/web/.htaccess

# Para ativar o mod_rewrite no ubuntu:
# sudo a2enmod rewrite

<IfModule mod_rewrite.c>
    Options +FollowSymlinks
    RewriteEngine On

    # Explicitly disable rewriting for front controllers
    RewriteRule ^app_dev.php - [L]
    RewriteRule ^app.php - [L]

    RewriteCond %{REQUEST_FILENAME} !-f

    # Change below before deploying to production
    RewriteRule ^(.*)$ /app.php [QSA,L]
#    RewriteRule ^(.*)$ /app_dev.php [QSA,L]
</IfModule>

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME

Comments

Apache