12.07.2017, 15:06 | #11 |
Специалист
|
маленький вопрос, 1-ый раз редирект делаю для вышеназванной страницы правильно:
RewriteCond %{REQUEST_URI} ^/stellazi-metallicheskie/$ RewriteRule ^.*$ http://staf.by/katalog/stellazi-metallicheskie? [R=301,L] ? |
12.07.2017, 16:45 | #12 | |
Мастер
|
Цитата:
Если есть под руками вменяемый джумлер, он сделает.
__________________
|
|
12.07.2017, 23:37 | #13 | |
Мастер
Регистрация: 25.06.2010
Сообщений: 598
Вес репутации: 193
|
Цитата:
|
|
20.07.2017, 12:48 | #18 |
Специалист
|
ну я вроде сделал... только не знаю правильно ли...
гляньте плиз кто-нить мот что подскажете... вот седержимое .htaccess ## # @package Joomla # @copyright Copyright (C) 2005 - 2016 Open Source Matters. All rights reserved. # @license GNU General Public License version 2 or later; see LICENSE.txt ## ## # READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE! # # The line 'Options +FollowSymLinks' may cause problems with some server configurations. # It is required for the use of mod_rewrite, but it may have already been set by your # server administrator in a way that disallows changing it in this .htaccess file. # If using it causes your site to produce an error, comment it out (add # to the # beginning of the line), reload your site in your browser and test your sef urls. If # they work, then it has been set by your server administrator and you do not need to # set it here. ## ## No directory listings IndexIgnore * ## Can be commented out if causes errors, see notes above. Options +FollowSymlinks Options -Indexes ## Mod_rewrite in use. RewriteEngine On ## Begin - Rewrite rules to block out some common exploits. # If you experience problems on your site then comment out the operations listed # below by adding a # to the beginning of the line. # This attempts to block the most common type of exploit `attempts` on Joomla! # # Block any script trying to base64_encode data within the URL. RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR] # Block any script that includes a <script> tag in URL. RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR] # Block any script trying to set a PHP GLOBALS variable via URL. RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR] # Block any script trying to modify a _REQUEST variable via URL. RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2}) # Return 403 Forbidden header and show the content of the root homepage RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$ RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$ RewriteRule .* index.php [F] # ## End - Rewrite rules to block out some common exploits. ## Begin - Custom redirects # # If you need to redirect some pages, or set a canonical non-www to # www redirect (or vice versa), place that code here. Ensure those # redirects use the correct RewriteRule syntax and the [R=301,L] flags. # ## End - Custom redirects ## # Uncomment the following line if your webserver's URL # is not directly related to physical file paths. # Update Your Joomla! Directory (just / for root). ## # RewriteBase / ## Begin - Joomla! core SEF Section. # RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$ RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$ RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] # # If the requested path and file is not /index.php and the request # has not already been internally rewritten to the index.php script RewriteCond %{REQUEST_URI} !^/index\.php # and the requested path and file doesn't directly match a physical file RewriteCond %{REQUEST_FILENAME} !-f # and the requested path and file doesn't directly match a physical folder RewriteCond %{REQUEST_FILENAME} !-d # internally rewrite the request to the index.php script RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$ RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$ RewriteRule .* index.php [L] # ## End - Joomla! core SEF Section. RewriteCond %{REQUEST_URI} ^/stellazi-metallicheskie/$ RewriteRule ^.*$ http://staf.by/katalog/stellazi-metallicheskie? [R=301,L] RewriteCond %{REQUEST_URI} ^/stellazi-metallicheskie/mezonin-platformennyj/$ RewriteRule ^.*$ http://staf.by/katalog/stellazi-meta...platformennyj? [R=301,L] RewriteCond %{REQUEST_URI} ^/stellazi-metallicheskie/stellazh-dlya-vertikalnogo-khraneniya/$ RewriteRule ^.*$ http://staf.by/katalog/stellazi-meta...go-khraneniya? [R=301,L] RewriteCond %{REQUEST_URI} ^/stellazi-metallicheskie/arhivnie-stellazi/$ RewriteRule ^.*$ http://staf.by/katalog/stellazi-meta...vnie-stellazi? [R=301,L] RewriteCond %{REQUEST_URI} ^/stellazi-metallicheskie/stellaj-universalniy/$ RewriteRule ^.*$ http://staf.by/katalog/stellazi-meta...-universalniy? [R=301,L] RewriteCond %{REQUEST_URI} ^/stellazi-metallicheskie/stellaj-palletniy-nabivnoy/$ RewriteRule ^.*$ http://staf.by/katalog/stellazi-meta...tniy-nabivnoy? [R=301,L] RewriteCond %{REQUEST_URI} ^/stellazi-metallicheskie/stellaj-mezoninniy/$ RewriteRule ^.*$ http://staf.by/katalog/stellazi-meta...aj-mezoninniy? [R=301,L] RewriteCond %{REQUEST_URI} ^/stellazi-metallicheskie/stellaji-konsolnie/$ RewriteRule ^.*$ http://staf.by/katalog/stellazi-meta...aji-konsolnie? [R=301,L] RewriteCond %{REQUEST_URI} ^/stellazi-metallicheskie/stellaj-mobilniy-peredvijnoy/$ RewriteRule ^.*$ http://staf.by/katalog/stellazi-meta...y-peredvijnoy? [R=301,L] RewriteCond %{REQUEST_URI} ^/shkafi-metallic/$ RewriteRule ^.*$ http://staf.by/katalog/shkafi-metallic? [R=301,L] RewriteCond %{REQUEST_URI} ^/shkafi-metallic/shkafi-odejnie/$ RewriteRule ^.*$ http://staf.by/katalog/shkafi-metallic/shkafi-odejnie? [R=301,L] RewriteCond %{REQUEST_URI} ^/shkafi-metallic/shkafi-odejnie/odnostvorchatye/$ RewriteRule ^.*$ http://staf.by/katalog/shkafi-metall...nostvorchatye? [R=301,L] RewriteCond %{REQUEST_URI} ^/shkafi-metallic/shkafi-odejnie/dvukhstvorchatyj/$ RewriteRule ^.*$ http://staf.by/katalog/shkafi-metall...khstvorchatyj? [R=301,L] RewriteCond %{REQUEST_URI} ^/shkafi-metallic/shkafi-odejnie/trjokhstvorchatyj/$ RewriteRule ^.*$ http://staf.by/katalog/shkafi-metall...khstvorchatyj? [R=301,L] RewriteCond %{REQUEST_URI} ^/shkafi-metallic/shkafi-odejnie/chetyrjokhstvorchatyj/$ RewriteRule ^.*$ http://staf.by/katalog/shkafi-metall...khstvorchatyj? [R=301,L] RewriteCond %{REQUEST_URI} ^/ograzhdeniya/$ RewriteRule ^.*$ http://staf.by/katalog/ograzhdeniya? [R=301,L] RewriteCond %{REQUEST_URI} ^/ograzhdeniya/mobilnye-ograzhdeniya/$ RewriteRule ^.*$ http://staf.by/katalog/ograzhdeniya/...-ograzhdeniya? [R=301,L] RewriteCond %{REQUEST_URI} ^/ograzhdeniya/setchatye-ograzhdeniya-3d/$ RewriteRule ^.*$ http://staf.by/katalog/ograzhdeniya/...razhdeniya-3d? [R=301,L] RewriteCond %{REQUEST_URI} ^/ograzhdeniya/setchatye-ograzhdeniya-2d/$ RewriteRule ^.*$ http://staf.by/katalog/ograzhdeniya/...razhdeniya-2d? [R=301,L] RewriteCond %{REQUEST_URI} ^/ograzhdeniya/ctolby-vorota-kalitki-i-komplektuyushchie/$ RewriteRule ^.*$ http://staf.by/katalog/ograzhdeniya/...lektuyushchie? [R=301,L] RewriteCond %{REQUEST_URI} ^/pochtovie-yaschiki/$ RewriteRule ^.*$ http://staf.by/katalog/pochtovie-yaschiki? [R=301,L] RewriteCond %{REQUEST_URI} ^/navesy/$ RewriteRule ^.*$ http://staf.by/katalog/navesy? [R=301,L] RewriteCond %{REQUEST_URI} ^/verstaki-slesarnie/$ RewriteRule ^.*$ http://staf.by/katalog/verstaki-slesarnie? [R=301,L] RewriteCond %{REQUEST_URI} ^/lesa-stroitelnie/$ RewriteRule ^.*$ http://staf.by/katalog/lesa-stroitelnie? [R=301,L] |
20.07.2017, 12:55 | #19 | |
Куриллочный троль
|
Цитата:
<meta name="robots" content="noindex, nofollow" /> Добавлено через 2 минуты если работает - значит праивльно, закиньте на сайт и проверьте а вообще найдите того кто умеет, там в 2-3 строки должно уместиться единое правило для всех категорий, чтоб не захламлять htaccess
__________________
Последний раз редактировалось Клон; 20.07.2017 в 12:56. Причина: Добавлено сообщение |
|
|
|
Похожие темы | ||||
Тема | Автор | Раздел | Ответов | Последнее сообщение |
Сделать шаблон для joomla | llooll | Поиск исполнителей | 3 | 23.10.2013 14:49 |
Вылет всех позиций по гуглу | frajumba | Google, MSN, Yahoo | 13 | 23.05.2012 17:20 |
Шаблон joomla | vitaliy s | Разработка и сопровождение сайтов | 0 | 04.08.2010 14:47 |
Сверстать шаблон для Joomla 1.5 | omnislash | Деловое сотрудничество | 7 | 27.12.2009 12:41 |
Поправить php код в шаблон joomla | slr | Разработка и сопровождение сайтов | 1 | 03.10.2009 22:46 |
Часовой пояс GMT +3, время: 00:09.