rilwanfit/zf1-practicals/master/public_html/.htaccess - Htaccess File

rilwanfit/zf1-practicals/master/public_html/.htaccess

# Set the Application Environment - Should reflect the relevant section name used in ini configuration files
SetEnv APPLICATION_ENV development

# Rewrite Rules for Zend Framework
RewriteEngine On
#RewriteRule !.(js|css|ico|gif|jpg|png|swf|eot|woff|ttf|svg|xml|xsl|doc|docx|pdf|mov|wmv|mpg|avi|mp4|asf)$ index.php
# added access to alternate.php
RewriteRule !alternate.php|.(js|css|ico|gif|jpg|png|swf|eot|woff|ttf|svg|xml|xsl|doc|docx|pdf|mov|wmv|mpg|avi|mp4|asf)$ index.php
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]

# Security: Do not allow Browsing of Directories
Options -Indexes

On Github License

Files

Download PDF of Htaccess file
ENV, REQUEST_FILENAME

Comments

Apache