t1nx 2 Posted August 28, 2020 Report Share Posted August 28, 2020 Ребята, эксперты! Помогите с решением. В общем настроил редиректы с www и с http на https все работает отлично. Но нужно чтоб админка была на http так как сертификат не дает работу некоторым плагинам На данный момент начало файла .htaccess следующее: DirectoryIndex index.php RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ https://%1/$1 [R=301,L] RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [NC,R=301,L Сама админка имеет адрес: mydomain.ru/admin.php Quote Link to post Share on other sites
VIP vituson 616 Posted August 28, 2020 VIP Report Share Posted August 28, 2020 Попробуйте такие варианты: RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteCond %{REQUEST_URI} !^/admin.php $ RewriteRule ^(.*)$ https://%1/$1 [R=301,L] RewriteEngine On RewriteCond %{HTTP:X-HTTPS} !1 RewriteCond %{REQUEST_FILENAME} !^admin\.php RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] Quote Link to post Share on other sites
t1nx 2 Posted August 28, 2020 Author Report Share Posted August 28, 2020 Не актуально, разобрался с плагином Quote Link to post Share on other sites
t1nx 2 Posted August 28, 2020 Author Report Share Posted August 28, 2020 Спасибо! Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.