форум vBSupport.ru > vBulletin > vBulletin 3.8.x > Вопросы по vBulletin 3.8
  • »
VBsupport перешел с домена .ORG на родной .RU Ура! Пожалуйста, обновите свои закладки - VBsupport.ru
 
 
 
 
Palamar
Гость
Default редирект с http на https

Перевёл форум на https,всё работает норм,но теперь нужно избавиться он http.
Подскажите как сделать редирект всех ссылок с http на https?
Пробовал разные манипуляции с .htaccess, к примеру
RewriteEngine On
RewriteCond %{HTTPS} =off
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Но без успеха,думаю что проблема с vbseo.
Bot
Yandex Bot Yandex Bot is online now
 
Join Date: 05.05.2005
Реклама на форуме А что у нас тут интересного? =)
 
 
Hobot
Эксперт
 
Hobot's Avatar
Default
1

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(.*)\ HTTP/ [NC]
RewriteCond %{HTTPS} off [NC]
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI}%{QUERY_STRING} [R=301,QSA,L]
</IfModule>
 
 
Palamar
Гость
Default

Quote:
Originally Posted by Hobot View Post
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(.*)\ HTTP/ [NC]
RewriteCond %{HTTPS} off [NC]
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI}%{QUERY_STRING} [R=301,QSA,L]
</IfModule>
не редиректит с поисковиков.
на главной вообще печаль
Страница worldofuser.ru не работает

Сайт worldofuser.ru выполнил переадресацию слишком много раз.
 
 
kerk
k0t
 
kerk's Avatar
Default
0

vBSEO - Зло!
я много раз это говорил
 
 
Hobot
Эксперт
 
Hobot's Avatar
Default
1

@Palamar, выкинь vbseo нахер.
 
 
Palamar
Гость
Default

Quote:
Originally Posted by kerk View Post
vBSEO - Зло!
я много раз это говорил
kerk, я помню.


Quote:
Originally Posted by Hobot View Post
Palamar, выкинь vbseo нахер.
уже не получится,половина ссылок на форуме связаны с vbseo.

Palamar добавил 21.01.2017 в 21:24
что-то можно сделать не удаляя vbseo

Last edited by Palamar : 01-21-2017 at 10:24 PM. Reason: Добавлено сообщение
 
 
Hobot
Эксперт
 
Hobot's Avatar
Default
0

Quote:
Originally Posted by Palamar View Post
что-то можно сделать не удаляя vbseo
редиректы от вбсео в студию. надо глянуть, что там конфликтует.
 
 
Palamar
Гость
Default

Quote:
Originally Posted by Hobot View Post
редиректы от вбсео в студию. надо глянуть, что там конфликтует.

всё что в .htaccess

PHP Code:
# Comment the following line (add '#' at the beginning)
# to disable mod_rewrite functions.
# Please note: you still need to disable the hack in
# the vBSEO control panel to stop url rewrites.
RewriteEngine On

# Some servers require the Rewritebase directive to be
# enabled (remove '#' at the beginning to activate)
# Please note: when enabled, you must include the path
# to your root vB folder (i.e. RewriteBase /forums/)
#RewriteBase /

#RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
#RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301]

RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$[L]

RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap|api\.php)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond 
%{REQUEST_FILENAME} !-d
RewriteCond 
%{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ vbseo.php [L,QSA
 
 
Hobot
Эксперт
 
Hobot's Avatar
Default
0

@Palamar, изучай это.
 
 
artscripts
Эксперт
 
artscripts's Avatar
Default
1

@Palamar, Пример моего перенаправления.
Code:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
	RewriteCond %{HTTP_HOST} ^www.alexrakov.\.ru$ [NC]
RewriteRule ^(.*)$ https://alexrakov.ru/$1 [R=301,L]
Убирает www и перенаправляет все на https
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off




All times are GMT +4. The time now is 02:52 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Loading...