Стандартный .htaccess для Danneo
Оригинальный файл .htaccess для Danneo будет полезен в том случае, если вы его случайно удалили или некорректно отредактировали.
О Danneo
«Атилект CMS представляет собой открытую и гибкую платформу для создания сайтов любой сложности. От простых промо-сайтов и сайтов визиток, до интернет-магазинов, социальных сетей и интранет-порталов».
— danneo.com
Исходный код
Содержимое стандартного файла .htaccess для CMS Danneo.
<Files ".htaccess">
deny from all
</Files>
ErrorDocument 400 /error/400.html
ErrorDocument 401 /error/401.html
ErrorDocument 403 /error/403.html
ErrorDocument 404 /error/404.html
ErrorDocument 500 /error/500.html
# Options -Indexes
# php_flag register_globals 0
# php_flag magic_quotes_gpc 1
# php_flag magic_quotes_runtime 0
<IfModule mod_dir.c>
DirectoryIndex index.html$ index.php
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.html$ index.php
RewriteRule ^click-([0-9]*).html$ banner.php?banid=$1 [NC]
RewriteRule ^yandex-([0-9]*)-([0-9]*).rss rss.php?dn=news&ya=$1&id=$2 [NC]
RewriteRule ^yandex-([0-9]*).rss rss.php?dn=news&ya=$1 [NC]
RewriteRule ^news-([0-9]*).rss rss.php?dn=news&id=$1 [NC]
RewriteRule ^news.rss rss.php?dn=news [NC]
RewriteRule ^ydown-([0-9]*)-([0-9]*).rss rss.php?dn=down&ya=$1&id=$2 [NC]
RewriteRule ^ydown-([0-9]*).rss rss.php?dn=down&ya=$1 [NC]
RewriteRule ^down-([0-9]*).rss rss.php?dn=down&id=$1 [NC]
RewriteRule ^down.rss rss.php?dn=down [NC]
RewriteRule ^([a-zA-Z0-9_]+)/date-([0-9]*)-([0-9]*)-([0-9]*)-([0-9]*).html$ index.php?dn=$1&to=dat&ye=$2&mo=$3&da=$4&p=$5 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/date-([0-9]*)-([0-9]*)-([0-9]*).html$ index.php?dn=$1&to=dat&ye=$2&mo=$3&da=$4 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/view(/|-)([a-zA-Z0-9_-]+)-([0-9]*).html$ index.php?dn=$1&to=cat&cpu=$3&p=$4 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/view(/|-)([a-zA-Z0-9_-]+).html$ index.php?dn=$1&to=cat&cpu=$3 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/read(/|-)([a-zA-Z0-9_-]+)-([0-9]*).html$ index.php?dn=$1&to=art&cpu=$3&p=$4 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/read(/|-)([a-zA-Z0-9_-]+).html$ index.php?dn=$1&to=art&cpu=$3 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/open/([a-zA-Z0-9_-]+)-([0-9]*).html$ index.php?dn=$1&to=open&cpu=$2&p=$3 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/open/([a-zA-Z0-9_-]+).html$ index.php?dn=$1&to=open&cpu=$2 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/load/([a-zA-Z0-9_-]+)-([a-zA-Z0-9]+).html$ index.php?dn=$1&re=load&ds=$3 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/load/([a-zA-Z0-9]+).html$ index.php?dn=$1&re=load&ds=$2 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/tags/([0-9]*)-([0-9]*).html$ index.php?dn=$1&re=tags&to=tag&id=$2&p=$3 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/tags/([0-9]*).html$ index.php?dn=$1&re=tags&to=tags&id=$2 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/tags/([a-zA-Z0-9_-]*)-([0-9]*).html$ index.php?dn=$1&re=tags&to=tag&cpu=$2&p=$3 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/tags/([a-zA-Z0-9_-]*).html$ index.php?dn=$1&re=tags&to=tag&cpu=$2 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/image/([a-zA-Z0-9_-]+).html$ index.php?dn=$1&to=image&cpu=$2 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/search-([0-9]*)-([0-9]*).html$ index.php?dn=$1&re=search&id=$2&p=$3 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/comment.html$ index.php?dn=$1&re=comment [NC]
RewriteRule ^([a-zA-Z0-9_]+)/letter/([a-zA-Z0-9-]+)-([0-9]*).html$ index.php?dn=$1&re=letter&sym=$2&p=$3 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/letter/([a-zA-Z-]+).html$ index.php?dn=$1&re=letter&sym=$2 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/tags(/)?$ index.php?dn=$1&re=tags [NC]
RewriteRule ^([a-zA-Z0-9_]+)/add-ajax-([0-1]+).html index.php?dn=$1&re=add&ajax=$2 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/add.html index.php?dn=$1&re=add [NC]
RewriteRule ^([a-zA-Z0-9_]+)/rating.html$ index.php?dn=$1&to=rating [NC]
RewriteRule ^([a-zA-Z0-9_]+)/media-([0-9]*)-([0-9]*).html$ index.php?dn=$1&to=media&list=$2&p=$3 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/image-([0-9]*).html$ index.php?dn=$1&to=image&id=$2 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/dl-([0-9]*)-([0-9]*).html$ index.php?dn=$1&to=open&id=$3 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/(p|page)-([0-9]*).html$ index.php?dn=$1&to=index&p=$3 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/o-([0-9]*)-([0-9]*).html$ index.php?dn=$1&to=open&id=$2&p=$3 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/o-([0-9]*).html$ index.php?dn=$1&to=open&id=$2 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/a-([0-9]*)-([0-9]*).html$ index.php?dn=$1&to=art&id=$2&p=$3 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/a-([0-9]*).html$ index.php?dn=$1&to=art&id=$2 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/b-([0-9]*).html$ index.php?dn=$1&re=broken&id=$2 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/r-([0-9]*)-([0-9]*).html$ index.php?dn=$1&to=cat&id=$2&p=$3 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/r-([0-9]*).html$ index.php?dn=$1&to=cat&id=$2 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/j-([0-9]*).html index.php?dn=$1&to=jump&id=$2 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/print-([0-9]*).html$ index.php?dn=$1&re=print&id=$2 [NC]
RewriteRule ^subscribe/act-([0-9]*)-([0-9]*).html$ index.php?dn=subscribe&to=act&id=$1&sa=$2
RewriteCond %{REQUEST_URI} !^/apanel(/)?$
RewriteCond %{REQUEST_URI} !^/forum(/)?$
RewriteCond %{REQUEST_URI} !^/setup(/)?$
RewriteRule ^([a-zA-Z0-9_]+)(/)?$ index.php?dn=$1 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_-]+).html$ index.php?dn=$1&pa=$2 [NC]
</IfModule>
<IfModule mod_expires.c>
ExpiresActive on
ExpiresByType image/jpeg "access plus 1 day"
ExpiresByType image/gif "access plus 1 day"
</IfModule>
deny from all
</Files>
ErrorDocument 400 /error/400.html
ErrorDocument 401 /error/401.html
ErrorDocument 403 /error/403.html
ErrorDocument 404 /error/404.html
ErrorDocument 500 /error/500.html
# Options -Indexes
# php_flag register_globals 0
# php_flag magic_quotes_gpc 1
# php_flag magic_quotes_runtime 0
<IfModule mod_dir.c>
DirectoryIndex index.html$ index.php
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.html$ index.php
RewriteRule ^click-([0-9]*).html$ banner.php?banid=$1 [NC]
RewriteRule ^yandex-([0-9]*)-([0-9]*).rss rss.php?dn=news&ya=$1&id=$2 [NC]
RewriteRule ^yandex-([0-9]*).rss rss.php?dn=news&ya=$1 [NC]
RewriteRule ^news-([0-9]*).rss rss.php?dn=news&id=$1 [NC]
RewriteRule ^news.rss rss.php?dn=news [NC]
RewriteRule ^ydown-([0-9]*)-([0-9]*).rss rss.php?dn=down&ya=$1&id=$2 [NC]
RewriteRule ^ydown-([0-9]*).rss rss.php?dn=down&ya=$1 [NC]
RewriteRule ^down-([0-9]*).rss rss.php?dn=down&id=$1 [NC]
RewriteRule ^down.rss rss.php?dn=down [NC]
RewriteRule ^([a-zA-Z0-9_]+)/date-([0-9]*)-([0-9]*)-([0-9]*)-([0-9]*).html$ index.php?dn=$1&to=dat&ye=$2&mo=$3&da=$4&p=$5 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/date-([0-9]*)-([0-9]*)-([0-9]*).html$ index.php?dn=$1&to=dat&ye=$2&mo=$3&da=$4 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/view(/|-)([a-zA-Z0-9_-]+)-([0-9]*).html$ index.php?dn=$1&to=cat&cpu=$3&p=$4 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/view(/|-)([a-zA-Z0-9_-]+).html$ index.php?dn=$1&to=cat&cpu=$3 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/read(/|-)([a-zA-Z0-9_-]+)-([0-9]*).html$ index.php?dn=$1&to=art&cpu=$3&p=$4 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/read(/|-)([a-zA-Z0-9_-]+).html$ index.php?dn=$1&to=art&cpu=$3 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/open/([a-zA-Z0-9_-]+)-([0-9]*).html$ index.php?dn=$1&to=open&cpu=$2&p=$3 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/open/([a-zA-Z0-9_-]+).html$ index.php?dn=$1&to=open&cpu=$2 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/load/([a-zA-Z0-9_-]+)-([a-zA-Z0-9]+).html$ index.php?dn=$1&re=load&ds=$3 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/load/([a-zA-Z0-9]+).html$ index.php?dn=$1&re=load&ds=$2 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/tags/([0-9]*)-([0-9]*).html$ index.php?dn=$1&re=tags&to=tag&id=$2&p=$3 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/tags/([0-9]*).html$ index.php?dn=$1&re=tags&to=tags&id=$2 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/tags/([a-zA-Z0-9_-]*)-([0-9]*).html$ index.php?dn=$1&re=tags&to=tag&cpu=$2&p=$3 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/tags/([a-zA-Z0-9_-]*).html$ index.php?dn=$1&re=tags&to=tag&cpu=$2 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/image/([a-zA-Z0-9_-]+).html$ index.php?dn=$1&to=image&cpu=$2 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/search-([0-9]*)-([0-9]*).html$ index.php?dn=$1&re=search&id=$2&p=$3 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/comment.html$ index.php?dn=$1&re=comment [NC]
RewriteRule ^([a-zA-Z0-9_]+)/letter/([a-zA-Z0-9-]+)-([0-9]*).html$ index.php?dn=$1&re=letter&sym=$2&p=$3 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/letter/([a-zA-Z-]+).html$ index.php?dn=$1&re=letter&sym=$2 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/tags(/)?$ index.php?dn=$1&re=tags [NC]
RewriteRule ^([a-zA-Z0-9_]+)/add-ajax-([0-1]+).html index.php?dn=$1&re=add&ajax=$2 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/add.html index.php?dn=$1&re=add [NC]
RewriteRule ^([a-zA-Z0-9_]+)/rating.html$ index.php?dn=$1&to=rating [NC]
RewriteRule ^([a-zA-Z0-9_]+)/media-([0-9]*)-([0-9]*).html$ index.php?dn=$1&to=media&list=$2&p=$3 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/image-([0-9]*).html$ index.php?dn=$1&to=image&id=$2 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/dl-([0-9]*)-([0-9]*).html$ index.php?dn=$1&to=open&id=$3 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/(p|page)-([0-9]*).html$ index.php?dn=$1&to=index&p=$3 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/o-([0-9]*)-([0-9]*).html$ index.php?dn=$1&to=open&id=$2&p=$3 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/o-([0-9]*).html$ index.php?dn=$1&to=open&id=$2 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/a-([0-9]*)-([0-9]*).html$ index.php?dn=$1&to=art&id=$2&p=$3 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/a-([0-9]*).html$ index.php?dn=$1&to=art&id=$2 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/b-([0-9]*).html$ index.php?dn=$1&re=broken&id=$2 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/r-([0-9]*)-([0-9]*).html$ index.php?dn=$1&to=cat&id=$2&p=$3 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/r-([0-9]*).html$ index.php?dn=$1&to=cat&id=$2 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/j-([0-9]*).html index.php?dn=$1&to=jump&id=$2 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/print-([0-9]*).html$ index.php?dn=$1&re=print&id=$2 [NC]
RewriteRule ^subscribe/act-([0-9]*)-([0-9]*).html$ index.php?dn=subscribe&to=act&id=$1&sa=$2
RewriteCond %{REQUEST_URI} !^/apanel(/)?$
RewriteCond %{REQUEST_URI} !^/forum(/)?$
RewriteCond %{REQUEST_URI} !^/setup(/)?$
RewriteRule ^([a-zA-Z0-9_]+)(/)?$ index.php?dn=$1 [NC]
RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_-]+).html$ index.php?dn=$1&pa=$2 [NC]
</IfModule>
<IfModule mod_expires.c>
ExpiresActive on
ExpiresByType image/jpeg "access plus 1 day"
ExpiresByType image/gif "access plus 1 day"
</IfModule>