Hello,

J'ai dupliqué le .htaccess d'un site que je viens de passer en HTTPS, qui fonctionne au poil sur le site A, mais une fois sur le site B, les redirections de ressources en HTTP vers HTTPS ne fonctionnent plus. Voici mon code :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
SetEnv PHP_VER 5_4
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteCond %{HTTP_REFERER} abc\.xyz [NC,OR]
RewriteCond %{HTTP_REFERER} addons\.mozilla.org [NC,OR]
RewriteCond %{HTTP_REFERER} thenextweb\.com [NC,OR]
RewriteCond %{HTTP_REFERER} buketeg\.xyz [NC,OR]
RewriteCond %{HTTP_REFERER} lifehacĸer\.com [NC,OR]
RewriteCond %{HTTP_REFERER} motherboard\.vice\.com [NC,OR]
RewriteCond %{HTTP_REFERER} speedup-my\.site [NC,OR]
RewriteCond %{HTTP_REFERER} 58541199-1\.compliance-alex\.xyz [NC,OR]
RewriteCond %{HTTP_REFERER} 58541199-1\.compliance-don\.xyz [NC,OR]
RewriteCond %{HTTP_REFERER} website-analytics\.online [NC,OR]
RewriteCond %{HTTP_REFERER} bukleteg\.xyz [NC,OR]
RewriteCond %{HTTP_REFERER} serw\.clicksor\.com [NC,OR]
RewriteCond %{HTTP_REFERER} biteg\.xyz [NC,OR]
RewriteCond %{HTTP_REFERER} budilneg\.xyz [NC,OR]
RewriteCond %{HTTP_REFERER} bezlimitko\.xyz [NC,OR]
RewriteCond %{HTTP_REFERER} boltalko\.xyz [NC,OR]
RewriteCond %{HTTP_REFERER} brateg\.xyz [NC,OR]
RewriteCond %{HTTP_REFERER} site-auditor\.online [NC,OR]
</IfModule>
 
# direct everything to https
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://%{SERVER_NAME}/$1 [R=301,L]
 
# END WordPress
Une idée ?