Цитата |
---|
Виталий пишет:
но как не странно в папке каталог на компе новые подкаталоги не образуютс |
Цитата |
---|
Виталий пишет:
p.s. на моём битриксе два сайта лежит (может это существенно). |
Код |
---|
#php_flag session.use_trans_sid off php_flag register_globals on php_flag error_reporting 0 DirectoryIndex index.php Options -Indexes AddDefaultCharset windows-1251 RewriteEngine on RewriteRule - - [L] RewriteRule ^forma/([-a-zA-Z0-9_@]{1,20}).html/?$ index.php?nav=forma&error=$1 [L] RewriteRule ^gbook/forma.html/?$ index.php?nav=gbook_forma [L] RewriteRule ^install/?$ install [L] RewriteRule ^rss/?$ rss [L] RewriteRule ^docs/([-a-zA-Z0-9_@]{1,20}).html/?$ index.php?nav=doc&name=$1 [L] RewriteRule ^([-a-zA-Z0-9_@]{1,20})/ID_([0-9]{1,20}).html/?$ index.php?nav=$1&id=$2 [L] RewriteRule ^([-a-zA-Z0-9_@]{1,20})/P([0-9]{1,20}).html/?$ index.php?nav=$1&p=$2 [L] RewriteRule ^([-a-zA-Z0-9_@]{1,20})/([-a-zA-Z0-9_@]{1,9}).html/?$ index.php?nav=$1&name=$2 [L] RewriteRule ^([-a-zA-Z0-9_@]{1,20})/?$ index.php?nav=$1 <files *.ini> Order Deny,Allow Deny From All </files> <files *.tpl> Order Deny,Allow Deny From All </files> |
Код |
---|
<? $arUrlRewrite = array( array( "CONDITION" => "#^/communication/forum/talk/#", "RULE" => "", "ID" => "bitrix:forum", "PATH" => "/communication/forum/talk/index.php", ), ); ?> |
Код |
---|
<? $arUrlRewrite = array( array( "CONDITION" => "#^/2personal/orders/#", "RULE" => "", "ID" => "bitrix:sale.personal.order", "PATH" => "/2personal/orders/index.php", ), array( "CONDITION" => "#^/personal/orders/#", "RULE" => "", "ID" => "bitrix:sale.personal.order", "PATH" => "/personal/orders/index.php", ), array( "CONDITION" => "#(.+?)\\.html(.*)#", "RULE" => "$1.php$2", "ID" => "", "PATH" => "", ), array( "CONDITION" => "#(.+?)\\.html(.*)#", "RULE" => "$1.php$2", "ID" => "", "PATH" => "", ), array( "CONDITION" => "#^/catalog/#", "RULE" => "", "ID" => "bexx:catalog", "PATH" => "/catalog/index.php", ), array( "CONDITION" => "#^/brands/#", "RULE" => "", "ID" => "bitrix:news", "PATH" => "/brands/index.php", ), ); ?> |
Код |
---|
Options -Indexes ErrorDocument 404 /404.php #php_flag allow_call_time_pass_reference 1 #php_flag session.use_trans_sid off #php_value display_errors 1 #php_value mbstring.func_overload 2 #php_value mbstring.internal_encoding UTF-8 <IfModule mod_rewrite.c> Options +FollowSymLinks RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-l RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !/bitrix/urlrewrite.php$ RewriteRule ^(.*)$ /bitrix/urlrewrite.php [L] </IfModule> <IfModule mod_dir.c> DirectoryIndex index.php index.html </IfModule> <IfModule mod_expires.c> ExpiresActive on ExpiresByType image/jpeg "access plus 3 day" ExpiresByType image/gif "access plus 3 day" </IfModule> |