Paylaşımlı Hosting SSL kurulumu
ssl sorunu yok hosting ekibimle görüştüm. Sitede sıkıntı yok zaten ama http://www şeklinde girince sorun var ssl de
- Düzenlendi
profilim Aşağıdaki kodu htaccess dosyanıza ekleyin.
# http://www --> https://www
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI}/forum [R=301,L]
# http:// --> https://
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI}/forum [R=301,L]
# https:// --> https://www
RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI}/forum [R=301,L]
En alta eklesem bir problem olur mu?
hata verdi olmuyor
/forum//forum şeklinde yönlendiriyor
profilim Aşağıdaki kodu deneyin bir de bakalım
# http://www --> https://www
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# http:// --> https://
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# https:// --> https://www
RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
bu seferde www. koyuyor o yüzden de ssl hata veriyor. www komutunu sil öyle ekleyeyim
- Düzenlendi
yani https://www.site.com/forum/
böyle yönlendirincede hata veriyor
profilim Son olarak aşağıdaki kodu deneyin. Olmazsa son satırda bulunan /forum silip deneyin. Son satırda site url’sini girin.
# http://www --> https://www
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# http:// --> https://
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# https:// --> https://www
RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule .* https://domain.com/forum [R=301,L]
bende anlamadım.. sen bana direk orjinal htacess kodu yollarmısın bi. belki bendekinde problem var .. hazırlayıp yollarsan sevinirim
Deniyorum şimdi gördüm
yok yine aynı
- Düzenlendi
https://flarumtr.com/d/296-cloudflare-ssl-kurulumu
Hiç uğraşmayın NS’leri değiştirin SSL’i aktif edip geçin. otomatik 1 gün içerisinde kurulumu sağlayacaktır.
Not : CloudFlare otomatik https://'ye yönlendirmeyi açın kendisi otomatik yönlendiricektir.