Jump to content
informatique76

Problème de redirection https

Rate this topic

Recommended Posts

Bonjour

depuis que j ai passé mon annuaire en https ( basé sur le script Arfoo ultimate) j ai un problème avec les thumbails des nouveaux sites référencés et ceux des
sites référencés dans l'annuaire .... sur la page d accueil
avec le message d erreur "too many redirect"...

https://www.annuairedereferencement.com

 

#Put the line here to enable PHP5    
#You may need to un-comment the following line    
#Options +FollowSymlinks   

# REMEBER YOU ONLY NEED TO STARD MOD REWRITE ONCE    
RewriteEngine On    

#REWRITE BASE    
RewriteBase /  

# HERE IS A GOOD PLACE TO ADD THE WWW PREFIXE REDIRECTION    
RewriteCond %{HTTP_HOST} ^annuairedereferencement.com$    
RewriteRule ^(.*) http://www.annuairedereferencement.com/$1 [QSA,L,R=301]    

# HERE IS A GOOD PLACE TO ADD THE OLD SCRIPT REDIRECTION    
RewriteCond %{SERVER_PORT} 80    
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] 

RewriteCond %{REQUEST_FILENAME} !-f    
RewriteCond %{REQUEST_FILENAME} !-d    
RewriteRule ^(.+)$ index.php    

<IfModule mod_expires.c>     
ExpiresActive On     
ExpiresDefault "access plus 7200 seconds"     
ExpiresByType image/jpg "access plus 2592000 seconds"     
ExpiresByType image/jpeg "access plus 2592000 seconds"     
ExpiresByType image/png "access plus 2592000 seconds"     
ExpiresByType image/gif "access plus 2592000 seconds"     
AddType image/x-icon .ico     
ExpiresByType image/ico "access plus 2592000 seconds"     
ExpiresByType image/icon "access plus 2592000 seconds"     
ExpiresByType image/x-icon "access plus 2592000 seconds"     
ExpiresByType text/css "access plus 2592000 seconds"     
ExpiresByType text/javascript "access plus 25920000 seconds"     
ExpiresByType text/html "access plus 7200 seconds"     E
xpiresByType application/xhtml+xml "access plus 7200 seconds"     
ExpiresByType application/javascript A25920000     
ExpiresByType application/x-javascript "access plus 25920000 seconds"     
ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds"    
</IfModule>
	
Edited by Dan
Mise en forme du code

Share this post


Link to post
Share on other sites

Bonjour,

 

Si ton site est en SSL, pourquoi utiliser ceci ?

# HERE IS A GOOD PLACE TO ADD THE WWW PREFIXE REDIRECTION    
RewriteCond %{HTTP_HOST} ^annuairedereferencement.com$    
RewriteRule ^(.*) http://www.annuairedereferencement.com/$1 [QSA,L,R=301]    

 

Tu devrais plutôt rediriger vers le site en https plutôt que http !

Share this post


Link to post
Share on other sites

Bonjour

Cette petite étourderie a été corrigée et le problème a été résolu en appliquant ce patch

 


http://www.e-dir.fr/arfooo_ultimate/arfooo_ultimate_https_patch.zip  

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...