Bonjour,
J'ai des redirections 301 qui se font toutes seules et je n'arrive pas en mettre une en place.
Grand moment de solitude. Est-ce que quelqu'un peut m'éclairer.
J'ai des sites qui font une redirection permanente.
Exemple sur http://www.clibre.eu/
J'ai dans le .htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
je vois la redirection est effective
HTTP/1.1 301 Moved Permanently
Server: Apache/2.4.6
X-Powered-By: PHP/5.4.4-14+deb7u8.1
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
X-Pingback: http://www.clibre.eu/xmlrpc.php'> http://www.clibre.eu/xmlrpc.php
Set-Cookie: PHPSESSID=ki7kbnji8pas4bsd7j3739ac11; path=/
Set-Cookie: sabai_user_device=pc; expires=Wed, 11-Jun-2014 11:54:47 GMT; path=/; httponly
Location: http://www.clibre.eu/
Content-Type: text/html; charset=UTF-8
Accept-Ranges: bytes
Date: Mon, 12 May 2014 11:54:47 GMT
Connection: keep-alive
Via: 1.1 varnish
Age: 0
HTTP/1.1 200 OK
Server: Apache/2.4.6
X-Powered-By: PHP/5.4.4-14+deb7u8.1
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
X-Pingback: http://www.clibre.eu/xmlrpc.php'> http://www.clibre.eu/xmlrpc.php
Link: ; rel=shortlink
Set-Cookie: PHPSESSID=aq0s51sq9ksa7bvmn2l72bqb81; path=/
Set-Cookie: sabai_user_device=pc; expires=Wed, 11-Jun-2014 11:54:48 GMT; path=/; httponly
Content-Type: text/html; charset=UTF-8
Vary: Accept-Encoding
Date: Mon, 12 May 2014 11:54:48 GMT
Connection: keep-alive
Via: 1.1 varnish
Age: 0
Déjà je trouve bizarre d'avoir un cache varnish car je suis passé à 1and1 qui me dit ne pas en mettre
J'ai l'impression que c'est un plugin qui fait la redirection car je trouve:
<link rel="canonical" href="http://www.clibre.eu/" />
Bon je fais la même chose sur d'autres sites (ex: ecoethique.eu) avec le même cms WP, même plugin mais pas de redirection ?
HTTP/1.1 200 OK
Date: Mon, 12 May 2014 12:13:25 GMT
Server: Apache
X-Powered-By: PHP/5.4.28
X-Pingback: http://ecoethique.eu/xmlrpc.php
Link: ; rel=shortlink
Set-Cookie: invite-anyone=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/
Content-Type: text/html; charset=UTF-8
Soit j'essaie de mettre une redirection dans le htaccess (cela me permet d'être sûr qu'elle y ait de manière permanente indépendamment de plugin activé ou changé )
il ne fonctionne pas.
Pouvez-vous me le redonner ??
Cordialement
Bonne journée
Hervé