Bonjour, un peu coincé suite à un passage en https (Site en WordPress : http://theoscience.org) qui a conduit à l'impossibilité d'afficher l'ensemble des images contenues dans "media". J'ai suivi scrupuleusement les guides d'OVH pour l'opération . Demande de support à OVH qui me renvoie sur des prestataires...
Donc, retour en http, et je n'ai toujours pas les images...
# redirect to https RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.theoscience.org/$1 [R=301,L]
# BEGIN WordPress # The directives (lines) between "BEGIN WordPress" and "END WordPress" are # dynamically generated, and should only be modified via WordPress filters. # Any changes to the directives between these markers will be overwritten. <IfModule mod_rewrite.c> RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>
# END WordPress
# BEGIN DS-XML-RPC-API # The directives (lines) between "BEGIN DS-XML-RPC-API" and "END DS-XML-RPC-API" are # dynamically generated, and should only be modified via WordPress filters. # Any changes to the directives between these markers will be overwritten.
Allow from 122.248.245.244/32 Allow from 54.217.201.243/32 Allow from 54.232.116.4/32 Allow from 192.0.80.0/20 Allow from 192.0.96.0/20 Allow from 192.0.112.0/20 Allow from 195.234.108.0/22 Allow from 192.0.64.0/18 </Files>
# END DS-XML-RPC-API # BEGIN DS-XML-RPC-FIX-HOTLINK # The directives (lines) between "BEGIN DS-XML-RPC-FIX-HOTLINK" and "END DS-XML-RPC-FIX-HOTLINK" are # dynamically generated, and should only be modified via WordPress filters. # Any changes to the directives between these markers will be overwritten.
RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://theoscience.org [NC] RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?google.com [NC] RewriteRule \.(jpg|jpeg|png|gif)$ – [NC,F,L] # END DS-XML-RPC-FIX-HOTLINK
et le fichier .htaccess du répertoire /wp-content/uploads :
# redirect to https RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.theoscience.org/$1 [R=301,L]
# BEGIN WordPress # The directives (lines) between "BEGIN WordPress" and "END WordPress" are # dynamically generated, and should only be modified via WordPress filters. # Any changes to the directives between these markers will be overwritten. <IfModule mod_rewrite.c> RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>
# END WordPress
# BEGIN DS-XML-RPC-API # The directives (lines) between "BEGIN DS-XML-RPC-API" and "END DS-XML-RPC-API" are # dynamically generated, and should only be modified via WordPress filters. # Any changes to the directives between these markers will be overwritten.
Allow from 122.248.245.244/32 Allow from 54.217.201.243/32 Allow from 54.232.116.4/32 Allow from 192.0.80.0/20 Allow from 192.0.96.0/20 Allow from 192.0.112.0/20 Allow from 195.234.108.0/22 Allow from 192.0.64.0/18 </Files>
# END DS-XML-RPC-API # BEGIN DS-XML-RPC-FIX-HOTLINK # The directives (lines) between "BEGIN DS-XML-RPC-FIX-HOTLINK" and "END DS-XML-RPC-FIX-HOTLINK" are # dynamically generated, and should only be modified via WordPress filters. # Any changes to the directives between these markers will be overwritten.
RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://theoscience.org [NC] RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?google.com [NC] RewriteRule \.(jpg|jpeg|png|gif)$ – [NC,F,L] # END DS-XML-RPC-FIX-HOTLINK
Il faudra qu'un modérateur m'explique pourquoi la réponse précédente il y a 13 minutes est passée, et maintenant à l'instant je reçois sur sa dernière réponse: