20 Aralık 2012, PERŞEMBE
debug yönlendirmek için https://www
Aşağıdaki debug kodu var:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond !{HTTPS} off
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>
Benim site https://www.yönlendirilmesini istiyorum
ama ben 4 ** erişim https://www beni yönlendirmez.
CEVAP
21 Aralık 2012, Cuma
İlk force HTTPS gerekir onay doğru ortam değişkeni %{HTTPS} off, ama kural yukarıda sonra başa www. Beri bir saniye kuralı uygulamak için www., kullanmıyorum ki ilk kural.
RewriteCond %{HTTPS} off
# First rewrite to HTTPS:
# Don't put www. here. If it is already there it will be included, if not
# the subsequent rule will catch it.
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Now, rewrite any request to the wrong domain to use www.
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Bunu PaylaÅŸ:

Nasıl HTTPS için tüm HTTP isteklerini ...
Tüm İstekleri Laravel Yönlendirmek İçi...
Orada https:// github kullanırken şifr...
Nasıl ve bash ile bir dosya için hem s...
/Debug vs serbest bırakılması için dir...