OVH Community, votre nouvel espace communautaire.

Site Prestashop non visible ERR_TOO_MANY_REDIRECTS


fritz2cat
18/03/2016, 17h37
Citation Envoyé par Ludo.H
@fritz2cat : parce que je réponds bêtement à un message modéré en oubliant de l'approuvé *boulet inside*
Même avec mes 8500 messages il m'arrive de poster un truc ou l'autre qui fait que mon message passe en modération. Et je me fais avoir...

Ludo.H
18/03/2016, 17h05
@fritz2cat : parce que je réponds bêtement à un message modéré en oubliant de l'approuvé *boulet inside*

skyzii
18/03/2016, 16h45
Bonjour, merci pour la réponse rapide,

Si ma question existait, elle a disparu ... allez savoir pourquoi ..

Je recommence donc ma question, voila ça fait deux jours que je m'arrache les cheveux j'ai un soucis...

mon site presashop est hébergé sur un serveur, en localhost à l'adresse http://www.diam-and-co.com (petite machine) donc si internet bien trop lent, je souhaiterais donc le migrer chez ovh et je fais un test à l'adresse http://diam-and-co.com/test et il s'avère que le site ne s'affiche pas.. j'ai pourtant transférer tout le contenu du site internet ainsi que la base de donnée, j'ai bien modifié dans le dossier config, les infos de la base de donnée, avec user mot de passe et l’adresse et compagnie .. je suis aussi allé dans la base de donnée pour modifier le shop_url et mettre http://diam-and-co.com/test

Et il s'avère que le site internet ne s'affiche toujours pas... et après avoir tout tenté je me tourne vers ous pour essayer de trouver une sokution à mon problème !

Pour répondre à ludo voici le contenu de mon .htaccess

# ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again
# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution
# http://www.prestashop.com - http://www.prestashop.com/forums


SecFilterEngine Off
SecFilterScanPOST Off




SetEnv HTTP_MOD_REWRITE On


AddType x-mapp-php5 .php .php3 .php4 .htm .html

SetEnv PHP_VER 5
SetEnv REGISTER_GLOBALS 0

# URL rewriting module activation
RewriteEngine on

# URL rewriting rules
RewriteBase /
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ product.php?id_product=$1$3 [L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ category.php?id_category=$1 [QSA,L,E]
RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ supplier.php?id_supplier=$1$3 [QSA,L,E]
RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]

# Catch 404 errors
ErrorDocument 404 /404.php

# Disable Multiviews
Options -Multiviews

RewriteEngine on


#Domain: www.diam-and-co.com
RewriteRule . - [E=REWRITEBASE:/]
RewriteRule ^api$ api/ [L]

RewriteRule ^api/(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]

# Images
RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L]
RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L]
RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L]
RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L]
# AlphaImageLoader for IE and fancybox
RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L]

# Dispatcher
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L]


AddType application/vnd.ms-fontobject .eot
AddType font/ttf .ttf
AddType font/otf .otf
AddType application/x-font-woff .woff


Header add Access-Control-Allow-Origin "*"




ExpiresActive On
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType text/css "access plus 1 week"
ExpiresByType text/javascript "access plus 1 week"
ExpiresByType application/javascript "access plus 1 week"
ExpiresByType application/x-javascript "access plus 1 week"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresByType image/svg+xml "access plus 1 year"
ExpiresByType image/vnd.microsoft.icon "access plus 1 year"
ExpiresByType application/font-woff "access plus 1 year"
ExpiresByType application/x-font-woff "access plus 1 year"
ExpiresByType application/vnd.ms-fontobject "access plus 1 year"
ExpiresByType font/opentype "access plus 1 year"
ExpiresByType font/ttf "access plus 1 year"
ExpiresByType font/otf "access plus 1 year"
ExpiresByType application/x-font-ttf "access plus 1 year"
ExpiresByType application/x-font-otf "access plus 1 year"



Header unset Etag

FileETag none


AddOutputFilterByType DEFLATE text/html text/css text/javascript application/javascript application/x-javascript font/ttf application/x-font-ttf font/otf application/x-font-otf font/opentype



#If rewrite mod isn't enabled
ErrorDocument 404 /index.php?controller=404

# ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again
Et je ne sais pas d'où pourrez venir le problème ?

Cdt,

fritz2cat
18/03/2016, 16h40
Bonjour Ludo, comment fais-tu pour répondre à une question qui n'existe pas ?

skyzii
18/03/2016, 16h26
Bonjour,

Merci de la réponse rapide !

Pour la configuration de mon .htaccess voici :

# ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again
# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution
# http://www.prestashop.com - http://www.prestashop.com/forums


SecFilterEngine Off
SecFilterScanPOST Off




SetEnv HTTP_MOD_REWRITE On


AddType x-mapp-php5 .php .php3 .php4 .htm .html

SetEnv PHP_VER 5
SetEnv REGISTER_GLOBALS 0

# URL rewriting module activation
RewriteEngine on

# URL rewriting rules
RewriteBase /
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ product.php?id_product=$1$3 [L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ category.php?id_category=$1 [QSA,L,E]
RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ supplier.php?id_supplier=$1$3 [QSA,L,E]
RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]

# Catch 404 errors
ErrorDocument 404 /404.php

# Disable Multiviews
Options -Multiviews

RewriteEngine on


#Domain: www.diam-and-co.com
RewriteRule . - [E=REWRITEBASE:/]
RewriteRule ^api$ api/ [L]

RewriteRule ^api/(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]

# Images
RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L]
RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L]
RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L]
RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L]
# AlphaImageLoader for IE and fancybox
RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L]

# Dispatcher
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L]


AddType application/vnd.ms-fontobject .eot
AddType font/ttf .ttf
AddType font/otf .otf
AddType application/x-font-woff .woff


Header add Access-Control-Allow-Origin "*"




ExpiresActive On
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType text/css "access plus 1 week"
ExpiresByType text/javascript "access plus 1 week"
ExpiresByType application/javascript "access plus 1 week"
ExpiresByType application/x-javascript "access plus 1 week"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresByType image/svg+xml "access plus 1 year"
ExpiresByType image/vnd.microsoft.icon "access plus 1 year"
ExpiresByType application/font-woff "access plus 1 year"
ExpiresByType application/x-font-woff "access plus 1 year"
ExpiresByType application/vnd.ms-fontobject "access plus 1 year"
ExpiresByType font/opentype "access plus 1 year"
ExpiresByType font/ttf "access plus 1 year"
ExpiresByType font/otf "access plus 1 year"
ExpiresByType application/x-font-ttf "access plus 1 year"
ExpiresByType application/x-font-otf "access plus 1 year"



Header unset Etag

FileETag none


AddOutputFilterByType DEFLATE text/html text/css text/javascript application/javascript application/x-javascript font/ttf application/x-font-ttf font/otf application/x-font-otf font/opentype



#If rewrite mod isn't enabled
ErrorDocument 404 /index.php?controller=404

# ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again
Et au niveau de prestashop pourquoi il referais la redirection ?

Cdt,

Ludo.H
18/03/2016, 16h23
Hello,

Si je test :

Code:
curl  -LI http://diam-and-co.com/test/test.php
HTTP/1.1 200 OK
Set-Cookie: mailplanBAK=R2555562282; path=/; expires=Fri, 18-Mar-2016 16:34:03 GMT
Content-Type: text/html
Set-Cookie: mailplan=R3631241293; path=/; expires=Fri, 18-Mar-2016 16:31:29 GMT
Server: Apache
Vary: Accept-Encoding
Date: Fri, 18 Mar 2016 15:21:19 GMT
Connection: keep-alive
X-Geo: varn19.rbx5
X-Geo-Port: 2015
X-Cacheable: Not cacheable: no cache headers from backend
C'est ok pour l'url : http://diam-and-co.com/test/test.php

Par contre pour http://diam-and-co.com/test/index.php :

Code:
HTTP/1.1 301 Moved Permanently
Set-Cookie: mailplanBAK=R2555566638; path=/; expires=Fri, 18-Mar-2016 16:25:45 GMT
Content-Type: text/html; charset=utf-8
Set-Cookie: mailplan=R3631241293; path=/; expires=Fri, 18-Mar-2016 16:25:45 GMT
Server: Apache
Location: http://diam-and-co.com/test/index.php?
Vary: Accept-Encoding
Date: Fri, 18 Mar 2016 15:22:43 GMT
Connection: keep-alive
X-Geo: varn04.rbx5
X-Geo-Port: 1015
X-Cacheable: Not cacheable: no cache headers from backend

HTTP/1.1 301 Moved Permanently
Set-Cookie: mailplanBAK=R2555563371; path=/; expires=Fri, 18-Mar-2016 16:23:52 GMT
Content-Type: text/html; charset=utf-8
Set-Cookie: mailplan=R3631241293; path=/; expires=Fri, 18-Mar-2016 16:31:45 GMT
Server: Apache
[...]
On boucle sur de la redirection.
Deux possibilités :

1. soit le .htaccess est mal configuré
2. soit prestashop fait la redirection pour une raison ou une autre.

Cdt,

skyzii
18/03/2016, 16h02
Bonjour,

Après deux jours de prise de tête et de calvaire, je me retourne vers vous pour espérer trouver une solution.

J'ai mon site internet prestashop qui est hébergé en locashost et seul le nom de domaine est pris chez OVH, tout fonctionne parfaitement. et il s'ouvre sans soucis. OVH effectue juste une redirection à cette adresse : http://www.diam-and-co.com

J'ai souhaité le migrer chez OVH, j'ai donc transféré le site internet, ainsi que la base de donnée. J'ai bien modifié dans le fichier de config les nouvelles donnée de la base de donnée. J'ai donc remplacé localhost, user, password et compagnie..

Je suis également allé au sein de la base de donnée pour mettre le nouveau shop_url soit url_domain et url_ssl qui est a cette adresse suivante :
http://diam-and-co.com/test/ (on peut donc constater que l'adresse de test est la même que le site actuel sans les "www")

Il s'avère donc que lorsque l'on va à cette adresse : http://diam-and-co.com/test rien ne se passe.

Si quelqu'un pourrait m'éclairer à ce sujet, ça serait top car là vraiment je m'en arrache les cheveux !

Merci d'avance :-)