Перейти к публикации
Поиск в
  • Дополнительно...
Искать результаты, содержащие...
Искать результаты в...

Исключение https для одной страницы


Blade
 Поделиться

Рекомендованные сообщения

Господа всем привет.

Выручите...проблема

Поставили новый сайт (по внешнему виду пока просьба не смеяться, все будет хорошо на выходе)

Включили ssl

в конфигах https

Поставлен фик https от Марка

Все ссылки идут по https

НО

Есть модуль от компании Микроинвест (в приложении)

я так понял он не может работать по http

Помогите пжл сделать htaccess что бы эта ссылка http://produktovyj-terminal.ru/index.php?route=service/db&wsdl

была доступна по http

 

htaccess сейчас такой

 

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>
 
AddDefaultCharset UTF-8
 
# SEO URL Settings
RewriteEngine On
<IfModule mod_rewrite.c>
    RewriteCond %{QUERY_STRING} (eval\() [NC,OR]
    RewriteCond %{QUERY_STRING} (javascript:)(.*)(;) [NC,OR]
    RewriteCond %{QUERY_STRING} (base64_encode)(.*)(\() [NC,OR]
    RewriteCond %{QUERY_STRING} (GLOBALS|REQUEST)(=|\[|%) [NC,OR]
    RewriteCond %{QUERY_STRING} (<|%3C)(.*)script(.*)(>|%3) [NC,OR]
    RewriteCond %{QUERY_STRING} (\\|\.\.\.|\.\./|~|`|<|>|\|) [NC,OR]
    RewriteCond %{QUERY_STRING} (boot\.ini|etc/passwd|self/environ) [NC,OR]
    RewriteCond %{QUERY_STRING} (\'|\")(.*)(drop|insert|md5|select|union) [NC]
    RewriteRule .* - [F]
</IfModule>
# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/ 
 
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^ https://%1%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTP:X-Forwarded-Proto} =http [OR]
RewriteCond %{HTTP:X-Forwarded-Proto} =""
RewriteCond %{HTTP:X-HTTPS} !1 [OR]
RewriteCond %{HTTPS} !=on
RewriteCond %{REQUEST_URI} !robots\.txt
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
 
RewriteRule ^yandexbuy/([^?]*)$ index.php?route=yandexbuy/$1 [L,QSA]
RewriteRule ^sitemap.xml$ index.php?route=feed/sitemap_pro [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteRule ^system/download/(.*) /index.php?route=error/not_found [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]
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} ^route=common/home$
RewriteCond %{REQUEST_METHOD} !^POST$
RewriteRule ^index\.php$ https://%{HTTP_HOST}? [R=301,L]
 
RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
RewriteRule . %1/%2 [R=301,L]
RewriteCond %{REQUEST_URI} ^(.*)—(.*)$
RewriteRule . %1-%2 [R=301,L]
RewriteCond %{REQUEST_URI} ^(.*)//(.*)$ [NC]
RewriteRule ^(.*)$ $1 [L,R=301]
RewriteCond %{THE_REQUEST} //
RewriteRule .* /$0 [R=301,L]

 

Utility center.zip

Ссылка на комментарий
Поделиться на других сайтах


Вопрос

RewriteCond %{REQUEST_URI} !robots\.txt
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
 
Почему  robots не редиректится
 
И.. сразу этот вопрос  ни на что не намекает?
Ссылка на комментарий
Поделиться на других сайтах

Какой-то у вас перемудрённый .htaccess.
Вот это зачем дважды:

RewriteRule ^system/download/(.*) /index.php?route=error/not_found [L]
RewriteRule ^system/download/(.*) index.php?route=error/not_found [L]

А эта строка должна быть последней (в большинстве случаев всё, прописанное ниже - работать не будет):

RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
Помогите пжл сделать htaccess что бы эта ссылка http://produktovyj-t...service/db была доступна по http
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{QUERY_STRING} !(.*)service/db(.*)$
RewriteCond %{REQUEST_URI} !^robots\.txt$
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Этого должно быть достаточно, вместо того полотнища условий, которое сейчас.

Ссылка на комментарий
Поделиться на других сайтах


В HTTPSFIX PRO

 

"Замена URL или строки"

https: //produktovyj-terminal.ru/index.php?route=service/db&wsdl

на

http: //produktovyj-terminal.ru/index.php?route=service/db&wsdl

Ссылка на комментарий
Поделиться на других сайтах

В HTTPSFIX PRO

 

"Замена URL или строки"

https: //produktovyj-terminal.ru/index.php?route=service/db&wsdl

на

http: //produktovyj-terminal.ru/index.php?route=service/db&wsdl

Макр сделал так все равно открывается по https (

Ссылка на комментарий
Поделиться на других сайтах


Всем спасибо

Пробовал все что выше, открывается все равно по https

 

вот стоковый htaccess. подскажите пжл как он должен выглядеть? устал уже их менять((

 

# 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
Ссылка на комментарий
Поделиться на других сайтах


вот стоковый htaccess. подскажите пжл как он должен выглядеть?
RewriteBase /
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{QUERY_STRING} !(.*)service/db(.*)$
RewriteCond %{REQUEST_URI} !^robots\.txt$
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Первая строка тут для ориентира, куда остальное вставлять.

 

А всё, что сейчас в файле есть, пусть и остаётся (я про стоковый).

Изменено пользователем Dotrox
Ссылка на комментарий
Поделиться на других сайтах


Сделал так

 

 

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

RewriteCond %{HTTPS} off

RewriteCond %{HTTP:X-Forwarded-Proto} !https

RewriteCond %{QUERY_STRING} !(.*)service/db(.*)$

RewriteCond %{REQUEST_URI} !^robots\.txt$

RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

 

все равно уходит на https ((

Ссылка на комментарий
Поделиться на других сайтах


  • 4 месяца спустя...
2 часа назад, Wild сказал:

Поделись решением, плиз...

Да банально стояла переадресация на https у хостера,  выключил

Но еще была доработка seo pro

Тут не подскажу,   делал не я

Могу скинуть файл,  там сравните

Или дать контакт человека

Ссылка на комментарий
Поделиться на других сайтах


9 часов назад, Wild сказал:

Доработанный файл весьма интерестен.
На всякий случай контакт тоже.
Можно в личку.

 

на счет файла...не смогу к сожалению

доступы у заказчика уже закрыты, и он недоступен

обратитесь к http://forum.opencart.pro/profile/3815-savage4pro/

поможет, если есть конечно есть время

Ссылка на комментарий
Поделиться на других сайтах


Создайте аккаунт или войдите в него для комментирования

Вы должны быть пользователем, чтобы оставить комментарий

Создать аккаунт

Зарегистрируйтесь для получения аккаунта. Это просто!

Зарегистрировать аккаунт

Войти

Уже зарегистрированы? Войдите здесь.

Войти сейчас
 Поделиться

  • Сейчас на странице   0 пользователей

    • Нет пользователей, просматривающих эту страницу.
×
×
  • Создать...

Важная информация

На нашем сайте используются файлы cookie и происходит обработка некоторых персональных данных пользователей, чтобы улучшить пользовательский интерфейс. Чтобы узнать для чего и какие персональные данные мы обрабатываем перейдите по ссылке. Если Вы нажмете «Я даю согласие», это означает, что Вы понимаете и принимаете все условия, указанные в этом Уведомлении о Конфиденциальности.