Форум SAPE.RU

Форум SAPE.RU (http://forum.sape.ru/index.php)
-   Яндекс (http://forum.sape.ru/forumdisplay.php?f=16)
-   -   сменили шаблон + перешли на joomla 3.7 c 2.5 вылетел из всех позиций... (http://forum.sape.ru/showthread.php?t=97604)

costrator 12.07.2017 15:06

маленький вопрос, 1-ый раз редирект делаю для вышеназванной страницы правильно:
RewriteCond %{REQUEST_URI} ^/stellazi-metallicheskie/$
RewriteRule ^.*$ http://staf.by/katalog/stellazi-metallicheskie? [R=301,L]
?

Valentyn 12.07.2017 16:45

Цитата:

Сообщение от costrator (Сообщение 1484437)
маленький вопрос, 1-ый раз редирект делаю для вышеназванной страницы правильно:
RewriteCond %{REQUEST_URI} ^/stellazi-metallicheskie/$
RewriteRule ^.*$ http://staf.by/katalog/stellazi-metallicheskie? [R=301,L]
?

Я бы вам посоветовал внутри джумлы все эти редиректы проделать - или какой-нибудь готовый модуль, или просто руками написать - там всего ничего кода (проверка, по какому урлу запрос - если по неправильному, то отправка 301 и редирект).

Если есть под руками вменяемый джумлер, он сделает.

chervals 12.07.2017 23:37

Цитата:

Сообщение от costrator (Сообщение 1484437)
маленький вопрос, 1-ый раз редирект делаю для вышеназванной страницы правильно:
RewriteCond %{REQUEST_URI} ^/stellazi-metallicheskie/$
RewriteRule ^.*$ http://staf.by/katalog/stellazi-metallicheskie? [R=301,L]
?

вбейте в гугле "ответ сервера" и проверьте есть ли 301 редирект. если есть значит правильно.

costrator 13.07.2017 09:05

Цитата:

Сообщение от chervals (Сообщение 1484447)
вбейте в гугле "ответ сервера" и проверьте есть ли 301 редирект. если есть значит правильно.

можно немного поподробнее ламеру где и как это сделать? )

chervals 13.07.2017 20:19

mainspy.ru/otvet_servera
webmaster.yandex.ru/tools/server-response/

costrator 19.07.2017 11:41

есть ли смысл писать платонам с целью поинтересоваться почему в индексе только 4 страницы осталось?

Клон 19.07.2017 11:44

Вам же сказали - редирект со старых страниц на новые сделайте, а не 404 для них отдавать

costrator 20.07.2017 12:48

ну я вроде сделал... только не знаю правильно ли...
гляньте плиз кто-нить мот что подскажете...
вот седержимое .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

Цитата:

Сообщение от costrator (Сообщение 1484601)
есть ли смысл писать платонам с целью поинтересоваться почему в индексе только 4 страницы осталось?

потому, что вы (или кто там у вас еще гадит на сайте) запретили их индексацию в мета-тегах:
<meta name="robots" content="noindex, nofollow" />

Добавлено через 2 минуты
Цитата:

Сообщение от costrator (Сообщение 1484611)
ну я вроде сделал... только не знаю правильно ли...

если работает - значит праивльно, закиньте на сайт и проверьте

а вообще найдите того кто умеет, там в 2-3 строки должно уместиться единое правило для всех категорий, чтоб не захламлять htaccess

costrator 20.07.2017 15:34

офигеть... я только сейчас заметил ноуфолоу \ ноиндекс в обших настрйках джумлы!!! это пистец!!!


Часовой пояс GMT +3, время: 01:53.

Работает на vBulletin® версия 3.8.7.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Перевод: zCarot
SAPE.RU — система купли-продажи ссылок с главных и внутренних страниц сайтов.