Htaccess File

devthuan/vnvisaservice/master/templates/.htaccess

REQUEST_FILENAME
#####################################################
#  READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations.  It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file.  If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's.  If they work,
# it has been set by your server administrator and you do not need it set here.
#
#####################################################

#########  Smart Optimizer
<IfModule mod_expires.c>
        <FilesMatch ".(gif|jpg|jpeg|png|swf|css|js|html?|xml|txt)$">
                ExpiresActive On
                ExpiresDefault "access plus 10 years"
        </FilesMatch>
</IfModule>
<IfModule mod_rewrite.c>
        RewriteEngine On

        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule ^(.*.(js|css))$ smartoptimizer/?$1

        <IfModule mod_expires.c>
                RewriteCond %{REQUEST_FILENAME} -f
                RewriteRule ^(.*.(js|css|html?|xml|txt))$ smartoptimizer/?$1
        </IfModule>

        <IfModule !mod_expires.c>
                RewriteCond %{REQUEST_FILENAME} -f
                RewriteRule ^(.*.(gif|jpg|jpeg|png|swf|css|js|html?|xml|txt))$ smartoptimizer/?$1
        </IfModule>
</IfModule>
<FilesMatch ".(gif|jpg|jpeg|png|swf|css|js|html?|xml|txt)$">
        FileETag none
</FilesMatch>
########## End Smart Optimizer
Exit mobile version