Так выглядит urlrewriate.
Собственно и .htaccess, вроде ничего сверхъестественного.
Скрытый текст |
---|
[CODE] <? $arUrlRewrite = array( array( "CONDITION" => "#^/news-and-articles/#", "RULE" => "", "ID" => "bitrix:news", "PATH" => "/news-and-articles/index.php", ), array( "CONDITION" => "#^/solutions/#", "RULE" => "", "ID" => "bitrix:news", "PATH" => "/solutions/index.php", ), array( "CONDITION" => "#^/questions/#", "RULE" => "", "ID" => "bitrix:news", "PATH" => "/questions/index.php", ), array( "CONDITION" => "#^/projects/#", "RULE" => "", "ID" => "bitrix:news", "PATH" => "/projects/index.php", ), array( "CONDITION" => "#^/partners/#", "RULE" => "", "ID" => "bitrix:news", "PATH" => "/partners/index.php", ), array( "CONDITION" => "#^/blog/#", "RULE" => "", "ID" => "bitrix:news", "PATH" => "/blog/index.php", ), array( "CONDITION" => "#^/#", "RULE" => "", "ID" => "bitrix:catalog", "PATH" => "/section/index.php", ), ); ?> [/CODE] |
Собственно и .htaccess, вроде ничего сверхъестественного.
Скрытый текст |
---|
[CODE] Options -Indexes ErrorDocument 404 /404.php <IfModule mod_php7.c> php_flag allow_call_time_pass_reference 1 php_flag session.use_trans_sid off php_value upload_max_filesize 40M php_value memory_limit 300M php_value default_socket_timeout 60 php_value max_input_vars 10000 </IfModule> <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] RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}] RewriteCond %{THE_REQUEST} /(.*)index.php.*$ RewriteCond %{THE_REQUEST} !bitrix/admin/ RewriteRule .* /%1 [R=301,L] #Пресс-центр Redirect 301 /wago-zanyalo-pervoe-mesto-v-konkurse-korporativnoe-zdorove/ /news-and-articles/wago-zanyalo-pervoe-mesto-v-konkurse-korporativnoe-zdorove/ Redirect 301 /siemens-soedinit-elektroseti-velikobritanii-i-belgii-s-kanalom-hvdc/ /news-and-articles/siemens-soedinit-elektroseti-velikobritanii-i-belgii-s-kanalom-hvdc/ Redirect 301 /vestdavit-missionease-vybrana-dlya-osnashcheniya-kabelem-nexans-cable-layer/ /news-and-articles/vestdavit-missionease-vybrana-dlya-osnashcheniya-kabelem-nexans-cable-layer/ Redirect 301 /weinmuller-pomenyala-prezidenta-v-svoem-otdelenii-po-severnoy-evrope/ /news-and-articles/weinmuller-pomenyala-prezidenta-v-svoem-otdelenii-po-severnoy-evrope/ Redirect 301 /nxt-robotics-obyavlyaet-o-partnerstve-s-ricoh/ /news-and-articles/nxt-robotics-obyavlyaet-o-partnerstve-s-ricoh/ Redirect 301 /weidmuller-predstavit-novinki-avtomatizatsii-na-sps-drives-2018/ /news-and-articles/weidmuller-predstavit-novinki-avtomatizatsii-na-sps-drives-2018/ Redirect 301 /honeywell-realizuet-modernizatsiyu-gosudarstvennoy-neftyanoy-kompanii-azerbaydzhana/ /news-and-articles/honeywell-realizuet-modernizatsiyu-gosudarstvennoy-neftyanoy-kompanii-azerbaydzhana/ Redirect 301 /daikin-stroit-tretiy-zavod-po-proizvodstvu-konditsionerov-v-indii/ /news-and-articles/daikin-stroit-tretiy-zavod-po-proizvodstvu-konditsionerov-v-indii/ </IfModule> <IfModule mod_alias.c> Redirect permanent /section/ / </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> [/CODE] |