Помощник
|
301 редирект |
PttRulez
|
Сообщение
#1
|
||
|
|
||
|
|||
Avatar_sf |
22.6.2014, 22:52;
Ответить: Avatar_sf
Сообщение
#2
|
|
Скиньте сюда содержимое вашего .htaccess из корня сайта целиком
|
|
|
Ami_sf |
23.6.2014, 0:10;
Ответить: Ami_sf
Сообщение
#3
|
|
PttRulez, не происходит редирект и показывает 404? Строчка с редиректом стоит до 404 ошибки или после (если после, то поставьте до). :a1:
|
|
|
PttRulez
|
Сообщение
#4
|
|
Ditmar,
# 1.To use URL Alias you need to be running apache with mod_rewrite enabled. # 2. In your opencart directory rename htaccess.txt to .htaccess. # For any support issues please visit: http://www.opencart.com Options +FollowSymlinks # Prevent Directoy listing Options -Indexes # Prevent Direct Access to files <FilesMatch "\.(tpl|ini|log)"> Order deny,allow Deny from all </FilesMatch> # SEO URL Settings RewriteEngine On # If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/ RewriteBase / #RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L] RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L] RewriteRule ^download/(.*) /index.php?route=error/not_found [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css) RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA] # Редирект c www на без www RewriteCond %{HTTP_HOST} ^www.wildskin.ru RewriteRule ^(.*)$ http://wildskin.ru/$1 [R=301,L] # Редирект для главной (с /index.php на /) RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\ HTTP/ RewriteRule ^index\.html$ / [R=301,L] RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/ RewriteRule ^index\.php$ / [R=301,L] RewriteCond %{QUERY_STRING} ^$ RewriteRule ^index\.php$ / [R=301] #RewriteRUle ^(.*)52-mujskie-koshelki-iz-koji-pitona$ http://wildskin.ru/kozhanie-koshelki/koshe...z-kozhi-pitona/ [R=310,L] ### Additional Settings that may need to be enabled for some servers ### Uncomment the commands by removing the # sign in front of it. ### If you get an "Internal Server Error 500" after enabling any of the following settings, restore the # as this means your host doesn't allow that. # 1. If your cart only allows you to add one item at a time, it is possible register_globals is on. This may work to disable it: # php_flag register_globals off # 2. If your cart has magic quotes enabled, This may work to disable it: # php_flag magic_quotes_gpc Off # 3. Set max upload file size. Most hosts will limit this and not allow it to be overridden but you can try # php_value upload_max_filesize 999M # 4. set max post size. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields # php_value post_max_size 999M # 5. set max time script can take. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields # php_value max_execution_time 200 # 6. set max time for input to be recieved. Uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields # php_value max_input_time 200 # 7. disable open_basedir limitations # php_admin_value open_basedir none |
|
|
PttRulez
|
Сообщение
#5
|
|
500 ошибки больше нет. там опечатка была. Но 404 до сих пор остается
Redirect 301 /52-mujskie-koshelki-iz-koji-pitona http://wildskin.ru/kozhanie-koshelki/koshe...z-kozhi-pitona/ - это мне показалось наиболее подходящее описание правила из тех статей что есть по-поводу 301 редиректа, но он засылает на: http://wildskin.ru/kozhanie-koshelki/koshe...-iz-koji-pitona Ami, куда здесь переставлять? |
|
|
Avatar_sf |
23.6.2014, 8:52;
Ответить: Avatar_sf
Сообщение
#6
|
|
А в какое место файла писали Redirect 301 /52-mujskie-koshelki-iz-koji-pitona http://wildskin.ru/kozhanie-koshelki/koshe...z-kozhi-pitona/
Походу до него срабатывает RewriteRule другой |
|
|
Ami_sf |
23.6.2014, 11:08;
Ответить: Ami_sf
Сообщение
#7
|
|
PttRulez, ну вот это правило мешает RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]. Поставьте Redirect 301 перед RewriteBase /
|
|
|
PttRulez
|
Сообщение
#8
|
|
Ditmar, ставил там, где сейчас #RewriteRUle ^(.*)52-mujskie...
Ami, это правило, по которой работает цмска, как я понимаю. Поставил перед RewriteBase - не помогло. Попробовал закомментировать то правило, что вы сказали мешает - вообще все перестало работать |
|
|
Ami_sf |
23.6.2014, 12:07;
Ответить: Ami_sf
Сообщение
#9
|
|
PttRulez, Попробуйте тогда через RewriteRule. Поместите его перед RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA] и может 301, а не 310 [R=310,L]?
|
|
|
PttRulez
|
Сообщение
#10
|
|
Ami, 1) редиректы заработали. Но при это правиле у меня админка стала выдавать 404 ошибку. И как мне понять что яндекс уже понял все и не индексирует старую страницу и заменил ее у себя в списке на новую? Удалится в вебмастере из раздела "Индексирование сайта - Страницы в поиске" ?
2) Остались еще под вопросом адреса типа wildskin.ru/zhenskie-koshelki/62-k.html, т.е. сайт/категория/товар Я не знаю на какой кошелек его редиректить. я бы их удалил просто. но в сервисе http://webmaster.yandex.ru/delurl.xml пишут, что страница должна давать 404 ошибку, либо запрещен через robots.txt, чтобы удалить ее из индекса - как это реализовать? Сейчас он 404 не дает а просто кидает меня в категорию |
|
|
|
Похожие темы
Тема | Ответов | Автор | Просмотров | Последний ответ | |
---|---|---|---|---|---|
301 редирект по маске. Как сделать? | 1 | Vbifyz | 1265 | 16.8.2020, 13:45 автор: miketomlin |
|
Автоматический редирект сервис. | 0 | smtp3ru | 2125 | 18.2.2018, 1:17 автор: -smtp3ru- |
|
Помогите найти вредоносный код (моб редирект) | 2 | Fint Ushami | 2620 | 12.10.2015, 1:43 автор: макс0007 |
|
301 редирект и пробелы в URL | 1 | Vmnetwork | 3792 | 23.6.2014, 23:34 автор: -miketomlin- |
|
Редирект, установка консультации на сайт и ошибка в коде | 2 | samgul | 4067 | 27.2.2013, 17:22 автор: -HTMLandPHP- |
Текстовая версия | Сейчас: 29.3.2024, 19:06 |