2016-04-08 29 views
1

SSL kullanan bir ana etki alanına ve şimdi SSL kullanmak istemediğim bir eklenti etki alanına sahip bir GoDaddy paylaşılan barındırma hesabım var. Https://support.google.com/support/ adresinde bulunan https://www.google.com/support/support.html adresindeki https://support.google.com/support.html adresindeki https://support.google.com/support.htm adresinden etkilenmez. Her iki site de Wordpress kullanıyor. Add-On HTTPS'ye Yönelik Yeniden Yönlendirme

eklenti etki https kullanma olmamalı ana alanı https kullanmalıdır, Açık olmak gerekirse. //addondomain.com:

ben yaşıyorum sorun addondomain.com https adına yönlendirme olduğunu.

Sorun, .htaccess dosyamdan düzeltilebileceğini biliyorum ve birkaç girişimde bulundum, ancak her biri, ana etki alanına yeniden yönlendiren eklenti etki alanıyla biter. .htaccess dosyamda değiştirmem gerekenler hakkında herhangi bir fikir çok takdir edilecektir! İşte

benim .htaccess dosyası gibi görünür:

# BEGIN WordPress 
<IfModule mod_rewrite.c> 
RewriteEngine On 
RewriteCond %{HTTPS} off 
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] 
RewriteBase/
RewriteRule ^index\.php$ - [L] 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule . /index.php [L] 
</IfModule> 
# END WordPress 

cevap

0

Eğer sadece kuralına şu koşul ekleyin, https sadece maindomain yönlendirmek isterseniz:

RewriteEngine On 
##if host=="*maindomain.com"## 
RewriteCond %{HTTP_HOST} ^(www\.)?maindomain\.com$ 
##and scheme ==http(https off)## 
RewriteCond %{HTTPS} off 
##then redirect the site to https 
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]