Htaccess File

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

ENV, REQUEST_FILENAME
# 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
Exit mobile version