X   Сообщение сайта
(Сообщение закроется через 3 секунды)



 

Здравствуйте, гость (

| Вход | Регистрация )

Открыть тему
Тема закрыта
> Не работает redirect (?_route_=), Русская сборка OpenCart Version 2.1.0.2 (rs.1)
Zhezkazganetcs
Zhezkazganetcs
Topic Starter сообщение 7.2.2016, 14:03; Ответить: Zhezkazganetcs
Сообщение #1


всем здрасти
в общем беда-беда
сменил cms с Joomla на OpenCart Version 2.1.0.2 (rs.1)
не работает редирект со страниц в поиске на страницы на сайте
в .htaccess прописано
Развернуть/Свернуть
CODE
# 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 "(?i)((\.tpl|\.ini|\.log|(?<!robots)\.txt))">
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 ^system/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]

### 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

но как бы я не прописывал редиректы
Развернуть/Свернуть
CODE
Redirect 301 /Akkumulyatory.html http://welltorg.com/Batteries
RewriteCond %{QUERY_STRING} ^_route_=/Akkumulyatory.html$
RewriteRule ^(.*)$ http://welltorg.com/Batteries?[R=301,L]

и
CODE
Redirect permanent /Akkumulyatory.html http://welltorg.com/Batteries

ничего не помогает
гуглил
но все способы не помогают
пишет что страница не найдена и
Развернуть/Свернуть
CODE
http://welltorg.com/Batteries?_route_=Akkumulyatory.html


в общем помогите/подскажите


[решено хостером]
вставлять в самом начале
Развернуть/Свернуть
Код
RewriteCond %{QUERY_STRING} ^_route_=Akkumulyatory.html$
RewriteRule ^(.*)$ http://welltorg.com/Batteries? [R=301,L]

тему можно закрыть


--------------------


Поблагодарили: (1)
0
Вернуться в начало страницы
 
Ответить с цитированием данного сообщения
x64
x64
сообщение 7.2.2016, 19:31; Ответить: x64
Сообщение #2


Опять то же :facepalm:
Очевидно же, что внешние редиректы должны идти раньше внутренних.

Закрыто.

Замечание модератора:
Эта тема была закрыта автоматически ввиду отсутствия активности в ней на протяжении 100+ дней.
Если Вы считаете ее актуальной и хотите оставить сообщение, то воспользуйтесь кнопкой
или обратитесь к любому из модераторов.
Вернуться в начало страницы
 
Ответить с цитированием данного сообщения
Открыть тему
Тема закрыта
2 чел. читают эту тему (гостей: 2, скрытых пользователей: 0)
Пользователей: 0


Свернуть

> Похожие темы

  Тема Ответов Автор Просмотров Последний ответ
Открытая тема (нет новых ответов) Крауд-маркетинг который работает | Эффективные Ру-ссылки
1 Azyuka 1049 13.2.2024, 19:36
автор: tascha56
Открытая тема (нет новых ответов) Кто работает с партнерской программой eBay?
0 Stalser 1174 14.12.2021, 12:26
автор: Stalser
Открытая тема (нет новых ответов) Кто работает с партнеркой Кликбанк?
4 metvekot 1722 5.12.2021, 22:32
автор: adamsadriane
Открытая тема (нет новых ответов) Бесплатный аудит рекламы от специалиста с 20 летним стажем. Реклама не всегда работает.
Ваша реклама может быть больше!
0 AndyGray 6799 1.4.2021, 12:31
автор: AndyGray
Открытая тема (нет новых ответов) Продам мануал "Как работает Google Discover"
8 vvovvo 3117 28.5.2020, 19:50
автор: vvovvo


 



RSS Текстовая версия Сейчас: 19.4.2024, 2:52
Дизайн