.htaccess для Almaz CMS
О Almaz CMS
«Almaz CMS — бесплатная система управления сайтом, выполненная в виде легкого блогового движка на текстовых файлах. Данная система не использует базу данных, что позволяет установить ее на любой хостинг».
— almazcms.com
Исходный код
Содержимое стандартного файла .htaccess для Almaz CMS.
AddDefaultCharset UTF-8 php_flag display_errors On ErrorDocument 404 /404.php Options -Indexes #### RewriteEngine functions #### RewriteEngine On RewriteBase / RewriteRule ^home/(.*)(\?.*)?$ blog_index.php?$1 [L] RewriteRule ^category/(.*)?(\?.*)?$ category.php?$1 [L] RewriteRule ^single/(.*)(\?.*)?$ single.php?$1 [L] RewriteRule ^category_rss/(.*)rss\.xml$ category_rss.php?$1 [L] RewriteRule ^rss\.xml$ rss.php [L] RewriteRule ^gallery/album/([_0-9A-Za-z-]+)?(\?.*)?$ gallery/album.php?$1 RewriteRule ^gallery/slideshow/([_0-9A-Za-z-]+)?(\?.*)?$ gallery/slideshow.php?$1 RewriteRule ^gallery/imgurl/(.*)(\?.*)?$ gallery/imgurl.php?$1 [L] RewriteRule ^gallery/fullimg/(.*)(\?.*)?$ gallery/fullimg.php?$1 [L] RewriteRule ^gallery/infoimg/(.*)(\?.*)?$ gallery/infoimg.php?$1 [L] #### Cache functions #### #### Remove simbol '#' at the beginning of all strings below for using #### #ExpiresActive on #ExpiresDefault " access plus 7 days " #ExpiresByType image/gif "modification plus 7 days" #ExpiresByType image/jpeg "modification plus 7 days" #ExpiresByType image/png "modification plus 7 days" #ExpiresByType image/jpg "modification plus 7 days" #ExpiresByType image/jpeg "modification plus 7 days" #ExpiresByType image/ico A5184000 #ExpiresByType text/css "modification plus 7 days" #ExpiresByType text/javascript "modification plus 7 days" #ExpiresByType text/html "now"