A super easy PHP Framework for web development!
https://github.com/exacti/phacil-framework
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
2.2 KiB
68 lines
2.2 KiB
|
|
Options +FollowSymlinks
|
|
|
|
# Prevent Directoy listing
|
|
|
|
Options -Indexes
|
|
|
|
<FilesMatch "\.(tpl|ini|log|xml|cache|twig|smarty|dwoo|mustache)">
|
|
Order deny,allow
|
|
Deny from all
|
|
</FilesMatch>
|
|
|
|
<IfModule mod_rewrite.c>
|
|
RewriteEngine On
|
|
RewriteBase /
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
|
|
|
|
</IfModule>
|
|
|
|
<IfModule mod_rewrite.c>
|
|
Options +FollowSymlinks
|
|
RewriteEngine On
|
|
|
|
# Adaptive-Images -----------------------------------------------------------------------------------
|
|
|
|
# Add any directories you wish to omit from the Adaptive-Images process on a new line, as follows:
|
|
# RewriteCond %{REQUEST_URI} !ignore-this-directory
|
|
# RewriteCond %{REQUEST_URI} !and-ignore-this-directory-too
|
|
|
|
#RewriteCond %{REQUEST_URI} !assets
|
|
|
|
# don't apply the AI behaviour to images inside AI's cache folder:
|
|
RewriteCond %{REQUEST_URI} !ai-cache
|
|
# don't apply the AI behaviour to images inside cache folder:
|
|
RewriteCond %{REQUEST_URI} !css-cache
|
|
|
|
# Send any GIF, JPG, or PNG request that IS NOT stored inside one of the above directories
|
|
# to adaptive-images.php so we can select appropriately sized versions
|
|
|
|
RewriteRule \.(?:jpe?g|png)$ index.php?_type_=img [L,QSA]
|
|
|
|
# END Adaptive-Images -------------------------------------------------------------------------------
|
|
|
|
|
|
# CSS ---------------------------------------------------------------------------------
|
|
|
|
# Add any directories you wish to omit from the Adaptive-Images process on a new line, as follows:
|
|
# RewriteCond %{REQUEST_URI} !ignore-this-directory
|
|
# RewriteCond %{REQUEST_URI} !and-ignore-this-directory-too
|
|
|
|
#RewriteCond %{REQUEST_URI} !assets
|
|
|
|
# don't apply the AI behaviour to images inside AI's cache folder:
|
|
RewriteCond %{REQUEST_URI} !ai-cache
|
|
|
|
# don't apply the AI behaviour to images inside cache folder:
|
|
RewriteCond %{REQUEST_URI} !css-cache
|
|
|
|
# Send any CSS or JS request that IS NOT stored inside one of the above directories
|
|
# to adaptive-images.php so we can select appropriately sized versions
|
|
|
|
#RewriteRule \.(?:css|js)$ index.php?_type_=script
|
|
|
|
# END Adaptive-Images -------------------------------------------------------------------------------
|
|
</IfModule>
|
|
|
|
|