Messages : 246
Sujets : 20
Inscription : Feb 2011
Réputation :
0
12/10/2011, 13:21:34
(Modification du message : 13/10/2011, 18:57:28 par Numastick.)
Citation :#~~~~~ DEBUT BLOC A NE PAS SUPPRIMER ~~~~~
#~ Version du CMS: !1.9.4.2
#~ Url du site : www.pokertoolsonline.fr
#~ Hébergeur / Soft : NUXIT
#~ Informations Système :
#~ ----------------------------------------------
#~ Cms Version: 1.9.4.2
#~ Installed Modules:
#~ CMSMailer: 2.0.1
#~ FileManager: 1.1.0
#~ MenuManager: 1.7.6
#~ ModuleManager: 1.4.2
#~ News: 2.11.3
#~ nuSOAP: 1.0.2
#~ Printing: 1.1.2
#~ Search: 1.6.10
#~ ThemeManager: 1.1.4
#~ TinyMCE: 2.9.1
#~ SEOTools: 1.2
#~ FormBuilder: 0.7
#~ DownCnt: 2.0.0
#~ Gallery: 1.4.4
#~ Config Information:
#~ php_memory_limit:
#~ process_whole_template: false
#~ output_compression: false
#~ max_upload_size: 10000000
#~ default_upload_permission: 664
#~ url_rewriting: mod_rewrite
#~ page_extension: .html
#~ query_var: page
#~ image_manipulation_prog: GD
#~ auto_alias_content: true
#~ locale:
#~ default_encoding: utf-8
#~ admin_encoding: utf-8
#~ set_names: true
#~ Php Information:
#~ phpversion: 5.2.6
#~ md5_function: On (Vrai)
#~ gd_version: 2
#~ tempnam_function: On (Vrai)
#~ magic_quotes_runtime: Off (Faux)
#~ E_STRICT: 0
#~ memory_limit: 32M
#~ max_execution_time: 30
#~ output_buffering: 4096
#~ safe_mode: Off (Faux)
#~ file_uploads: On (Vrai)
#~ post_max_size: 8M
#~ upload_max_filesize: 10M
#~ session_save_path: /home/session (2755)
#~ session_use_cookies: On (Vrai)
#~ xml_function: On (Vrai)
#~ Server Information:
#~ Server Api: cgi
#~ Server Db Type: MySQL (mysql)
#~ Server Db Version: 5.0.51
#~ ----------------------------------------------
#~~~~~ FIN BLOC A NE PAS SUPPRIMER ~~~~~
Bonjour à tous,
Je m'excuse à l'avance pour cette question sûrement un peu simplette, mais je n'arrive pas du tout à faire fonctionner mes redirections 301 chez NUXIT...
J'essaie de rediriger la page /nombre-de-tables-ouvertes-winamax.html vers http://www.pokertoolsonline.fr/poker-too...namax.html à l'aide du code suivant (genre de code que j'utilise habituellement et qui fonctionne sans problème chez OVH, sauf erreur) :
Code : RewriteCond %{REQUEST_URI} ^/nombre-de-tables-ouvertes-winamax.html
RewriteRule ^(.*) http://www.pokertoolsonline.fr/poker-tools-online/multi-tabling-winamax.html [L,R=301]
La redirection fonctionne bien au départ, mais ajoute à la fin le nom de la page d'origine pour une raison qui m'échappe...
Ajout de "?page=nombre-de-tables-ouvertes-winamax.html" après l'URL http://www.pokertoolsonline.fr/poker-too...namax.html
Quelqu'un aurait-il une idée ?
Le .htaccess au complet, si nécessaire :
Code : AddHandler x-httpd-php5 .php
AddType application/x-httpd-php5 .php
SetEnv PHP_VER 5
Options +FollowSymlinks
RewriteEngine On
# Pour rediriger pokertoolsonline.fr vers www.pokertoolsonline.fr
RewriteCond %{HTTP_HOST} !^www\.pokertoolsonline\.fr [NC]
RewriteRule (.*) http://www.pokertoolsonline.fr/$1 [QSA,R=301,L]
# Début du filtrage, puis de réécriture d'URLs propres
# Nécessite Options FollowSymLinks
# et Allow on
# Protection contre Hackers
RewriteCond %{QUERY_STRING} ^(.*&)?error=http://
RewriteRule ^(.*/)?errors.php - [F,L]
# Peut être requis avec un sous dossier
RewriteBase /
# Pour rediriger index.html, index.php.... vers la racine du site (ne marche pas)
#RewriteCond %{THE_REQUEST} ^(GET|POST|HEAD)\ (/.*)?/index.(htm|html|php|asp|shtml)
#RewriteRule ^(.*)index.(htm|html|php|asp|shtml)$ /$1 [R=301,L]
#Page renommée (ne marche pas)
#RewriteCond %{THE_REQUEST} /nombre-de-tables-ouvertes-winamax.html
#RewriteRule /nombre-de-tables-ouvertes-winamax.html http://www.pokertoolsonline.fr/poker-tools-online/multi-tabling-winamax.html [L,R=301]
RewriteCond %{REQUEST_URI} ^/nombre-de-tables-ouvertes-winamax.html
RewriteRule ^(.*) http://www.pokertoolsonline.fr/poker-tools-online/multi-tabling-winamax.html [L,R=301]
#RewriteRule /nombre-de-tables-ouvertes-winamax.html http://www.pokertoolsonline.fr/poker-tools-online/multi-tabling-winamax.html [R=301]
# Réécriture ordinaire des URLs propres
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule ^(.+)(.html)?$ index.php?page=$1 [QSA]
RewriteRule ^(.+)(.htm)?$ index.php?page=$1 [QSA]
# Fin de la réécriture
Merci d'avance pour votre aide...
Messages : 246
Sujets : 20
Inscription : Feb 2011
Réputation :
0
12/10/2011, 13:21:34
(Modification du message : 13/10/2011, 18:57:28 par Numastick.)
Citation :#~~~~~ DEBUT BLOC A NE PAS SUPPRIMER ~~~~~
#~ Version du CMS: !1.9.4.2
#~ Url du site : www.pokertoolsonline.fr
#~ Hébergeur / Soft : NUXIT
#~ Informations Système :
#~ ----------------------------------------------
#~ Cms Version: 1.9.4.2
#~ Installed Modules:
#~ CMSMailer: 2.0.1
#~ FileManager: 1.1.0
#~ MenuManager: 1.7.6
#~ ModuleManager: 1.4.2
#~ News: 2.11.3
#~ nuSOAP: 1.0.2
#~ Printing: 1.1.2
#~ Search: 1.6.10
#~ ThemeManager: 1.1.4
#~ TinyMCE: 2.9.1
#~ SEOTools: 1.2
#~ FormBuilder: 0.7
#~ DownCnt: 2.0.0
#~ Gallery: 1.4.4
#~ Config Information:
#~ php_memory_limit:
#~ process_whole_template: false
#~ output_compression: false
#~ max_upload_size: 10000000
#~ default_upload_permission: 664
#~ url_rewriting: mod_rewrite
#~ page_extension: .html
#~ query_var: page
#~ image_manipulation_prog: GD
#~ auto_alias_content: true
#~ locale:
#~ default_encoding: utf-8
#~ admin_encoding: utf-8
#~ set_names: true
#~ Php Information:
#~ phpversion: 5.2.6
#~ md5_function: On (Vrai)
#~ gd_version: 2
#~ tempnam_function: On (Vrai)
#~ magic_quotes_runtime: Off (Faux)
#~ E_STRICT: 0
#~ memory_limit: 32M
#~ max_execution_time: 30
#~ output_buffering: 4096
#~ safe_mode: Off (Faux)
#~ file_uploads: On (Vrai)
#~ post_max_size: 8M
#~ upload_max_filesize: 10M
#~ session_save_path: /home/session (2755)
#~ session_use_cookies: On (Vrai)
#~ xml_function: On (Vrai)
#~ Server Information:
#~ Server Api: cgi
#~ Server Db Type: MySQL (mysql)
#~ Server Db Version: 5.0.51
#~ ----------------------------------------------
#~~~~~ FIN BLOC A NE PAS SUPPRIMER ~~~~~
Bonjour à tous,
Je m'excuse à l'avance pour cette question sûrement un peu simplette, mais je n'arrive pas du tout à faire fonctionner mes redirections 301 chez NUXIT...
J'essaie de rediriger la page /nombre-de-tables-ouvertes-winamax.html vers http://www.pokertoolsonline.fr/poker-too...namax.html à l'aide du code suivant (genre de code que j'utilise habituellement et qui fonctionne sans problème chez OVH, sauf erreur) :
Code : RewriteCond %{REQUEST_URI} ^/nombre-de-tables-ouvertes-winamax.html
RewriteRule ^(.*) http://www.pokertoolsonline.fr/poker-tools-online/multi-tabling-winamax.html [L,R=301]
La redirection fonctionne bien au départ, mais ajoute à la fin le nom de la page d'origine pour une raison qui m'échappe...
Ajout de "?page=nombre-de-tables-ouvertes-winamax.html" après l'URL http://www.pokertoolsonline.fr/poker-too...namax.html
Quelqu'un aurait-il une idée ?
Le .htaccess au complet, si nécessaire :
Code : AddHandler x-httpd-php5 .php
AddType application/x-httpd-php5 .php
SetEnv PHP_VER 5
Options +FollowSymlinks
RewriteEngine On
# Pour rediriger pokertoolsonline.fr vers www.pokertoolsonline.fr
RewriteCond %{HTTP_HOST} !^www\.pokertoolsonline\.fr [NC]
RewriteRule (.*) http://www.pokertoolsonline.fr/$1 [QSA,R=301,L]
# Début du filtrage, puis de réécriture d'URLs propres
# Nécessite Options FollowSymLinks
# et Allow on
# Protection contre Hackers
RewriteCond %{QUERY_STRING} ^(.*&)?error=http://
RewriteRule ^(.*/)?errors.php - [F,L]
# Peut être requis avec un sous dossier
RewriteBase /
# Pour rediriger index.html, index.php.... vers la racine du site (ne marche pas)
#RewriteCond %{THE_REQUEST} ^(GET|POST|HEAD)\ (/.*)?/index.(htm|html|php|asp|shtml)
#RewriteRule ^(.*)index.(htm|html|php|asp|shtml)$ /$1 [R=301,L]
#Page renommée (ne marche pas)
#RewriteCond %{THE_REQUEST} /nombre-de-tables-ouvertes-winamax.html
#RewriteRule /nombre-de-tables-ouvertes-winamax.html http://www.pokertoolsonline.fr/poker-tools-online/multi-tabling-winamax.html [L,R=301]
RewriteCond %{REQUEST_URI} ^/nombre-de-tables-ouvertes-winamax.html
RewriteRule ^(.*) http://www.pokertoolsonline.fr/poker-tools-online/multi-tabling-winamax.html [L,R=301]
#RewriteRule /nombre-de-tables-ouvertes-winamax.html http://www.pokertoolsonline.fr/poker-tools-online/multi-tabling-winamax.html [R=301]
# Réécriture ordinaire des URLs propres
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule ^(.+)(.html)?$ index.php?page=$1 [QSA]
RewriteRule ^(.+)(.htm)?$ index.php?page=$1 [QSA]
# Fin de la réécriture
Merci d'avance pour votre aide...
Messages : 10,864
Sujets : 164
Inscription : Dec 2008
Réputation :
0
tu dois tomber dans le cas de cette redirection
Code : # Pour rediriger pokertoolsonline.fr vers www.pokertoolsonline.fr
RewriteCond %{HTTP_HOST} !^www\.pokertoolsonline\.fr [NC]
RewriteRule (.*) http://www.pokertoolsonline.fr/$1 [QSA,R=301,L]
sans doute à cause du flag QSA. tente de virer cette partie et retest
http://httpd.apache.org/docs/current/mod...write.html
Messages : 10,864
Sujets : 164
Inscription : Dec 2008
Réputation :
0
tu dois tomber dans le cas de cette redirection
Code : # Pour rediriger pokertoolsonline.fr vers www.pokertoolsonline.fr
RewriteCond %{HTTP_HOST} !^www\.pokertoolsonline\.fr [NC]
RewriteRule (.*) http://www.pokertoolsonline.fr/$1 [QSA,R=301,L]
sans doute à cause du flag QSA. tente de virer cette partie et retest
http://httpd.apache.org/docs/current/mod...write.html
Messages : 246
Sujets : 20
Inscription : Feb 2011
Réputation :
0
Hello (toujours vif comme l'éclair à ce que je vois !),
Ben non, pas mieux, toujours redirigé vers : Code : http://www.pokertoolsonline.fr/poker-tools-online/multi-tabling-winamax.html?page=nombre-de-tables-ouvertes-winamax.html
...
Messages : 246
Sujets : 20
Inscription : Feb 2011
Réputation :
0
Hello (toujours vif comme l'éclair à ce que je vois !),
Ben non, pas mieux, toujours redirigé vers : Code : http://www.pokertoolsonline.fr/poker-tools-online/multi-tabling-winamax.html?page=nombre-de-tables-ouvertes-winamax.html
...
Messages : 10,864
Sujets : 164
Inscription : Dec 2008
Réputation :
0
Messages : 10,864
Sujets : 164
Inscription : Dec 2008
Réputation :
0
Messages : 246
Sujets : 20
Inscription : Feb 2011
Réputation :
0
Me neither...
Mais bonne nouvelle, y'a quand même un truc qui fonctionne :
http://pokertoolsonline.fr/nombre-de-tab...namax.html est bien redirigée vers http://pokertoolsonline.fr/poker-tools-o...namax.html
C'est si je mets www devant pokertoolsonline.fr que ça ne marche plus :
Code : http://www.pokertoolsonline.fr/nombre-de-tables-ouvertes-winamax.html
dirige toujours vers Code : http://pokertoolsonline.fr/poker-tools-online/multi-tabling-winamax.html?page=nombre-de-tables-ouvertes-winamax.html
donc vers une erreur 404.
Et cela, avec ou sans ces lignes dans le .htaccess :
Code : # Pour rediriger www.pokertoolsonline.fr vers pokertoolsonline.fr
RewriteCond %{HTTP_HOST} ^www\.pokertoolsonline\.fr [NC]
RewriteRule (.*) http://pokertoolsonline.fr/$1 [QSA,R=301,L]
(remarque : j'ai changé par rapport à la fois précédente, je dirige toutes les pages vers la racine, et non vers www/)
Je te remets tout le .htaccess, on en sait jamais, des fois que ça t'inspire...
Code : AddHandler x-httpd-php5 .php
AddType application/x-httpd-php5 .php
SetEnv PHP_VER 5
Options +FollowSymlinks
RewriteEngine On
# Peut être requis avec un sous dossier
RewriteBase /
# Pour rediriger www.pokertoolsonline.fr vers pokertoolsonline.fr
RewriteCond %{HTTP_HOST} ^www\.pokertoolsonline\.fr [NC]
RewriteRule (.*) http://pokertoolsonline.fr/$1 [QSA,R=301,L]
# Début du filtrage, puis de réécriture d'URLs propres
# Nécessite Options FollowSymLinks
# et Allow on
# Protection contre Hackers
RewriteCond %{QUERY_STRING} ^(.*&)?error=http://
RewriteRule ^(.*/)?errors.php - [F,L]
# Pour rediriger index.html, index.php.... vers la racine du site (Evite le DUST)
#RewriteCond %{THE_REQUEST} ^(GET|POST|HEAD)\ (/.*)?/index.(htm|html|php|asp|shtml)
#RewriteRule ^(.*)index.(htm|html|php|asp|shtml)$ /$1 [R=301,L]
#Page renommée (ne marche pas)
RewriteCond %{REQUEST_URI} ^/nombre-de-tables-ouvertes-winamax.html
RewriteRule ^(.*) http://pokertoolsonline.fr/poker-tools-online/multi-tabling-winamax.html [L,R=301]
#RewriteRule /nombre-de-tables-ouvertes-winamax.html http://pokertoolsonline.fr/poker-tools-online/multi-tabling-winamax.html [R=301]
# Réécriture ordinaire des URLs propres
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule ^(.+)(.html)?$ index.php?page=$1 [QSA]
RewriteRule ^(.+)(.htm)?$ index.php?page=$1 [QSA]
# Fin de la réécriture
Messages : 246
Sujets : 20
Inscription : Feb 2011
Réputation :
0
Me neither...
Mais bonne nouvelle, y'a quand même un truc qui fonctionne :
http://pokertoolsonline.fr/nombre-de-tab...namax.html est bien redirigée vers http://pokertoolsonline.fr/poker-tools-o...namax.html
C'est si je mets www devant pokertoolsonline.fr que ça ne marche plus :
Code : http://www.pokertoolsonline.fr/nombre-de-tables-ouvertes-winamax.html
dirige toujours vers Code : http://pokertoolsonline.fr/poker-tools-online/multi-tabling-winamax.html?page=nombre-de-tables-ouvertes-winamax.html
donc vers une erreur 404.
Et cela, avec ou sans ces lignes dans le .htaccess :
Code : # Pour rediriger www.pokertoolsonline.fr vers pokertoolsonline.fr
RewriteCond %{HTTP_HOST} ^www\.pokertoolsonline\.fr [NC]
RewriteRule (.*) http://pokertoolsonline.fr/$1 [QSA,R=301,L]
(remarque : j'ai changé par rapport à la fois précédente, je dirige toutes les pages vers la racine, et non vers www/)
Je te remets tout le .htaccess, on en sait jamais, des fois que ça t'inspire...
Code : AddHandler x-httpd-php5 .php
AddType application/x-httpd-php5 .php
SetEnv PHP_VER 5
Options +FollowSymlinks
RewriteEngine On
# Peut être requis avec un sous dossier
RewriteBase /
# Pour rediriger www.pokertoolsonline.fr vers pokertoolsonline.fr
RewriteCond %{HTTP_HOST} ^www\.pokertoolsonline\.fr [NC]
RewriteRule (.*) http://pokertoolsonline.fr/$1 [QSA,R=301,L]
# Début du filtrage, puis de réécriture d'URLs propres
# Nécessite Options FollowSymLinks
# et Allow on
# Protection contre Hackers
RewriteCond %{QUERY_STRING} ^(.*&)?error=http://
RewriteRule ^(.*/)?errors.php - [F,L]
# Pour rediriger index.html, index.php.... vers la racine du site (Evite le DUST)
#RewriteCond %{THE_REQUEST} ^(GET|POST|HEAD)\ (/.*)?/index.(htm|html|php|asp|shtml)
#RewriteRule ^(.*)index.(htm|html|php|asp|shtml)$ /$1 [R=301,L]
#Page renommée (ne marche pas)
RewriteCond %{REQUEST_URI} ^/nombre-de-tables-ouvertes-winamax.html
RewriteRule ^(.*) http://pokertoolsonline.fr/poker-tools-online/multi-tabling-winamax.html [L,R=301]
#RewriteRule /nombre-de-tables-ouvertes-winamax.html http://pokertoolsonline.fr/poker-tools-online/multi-tabling-winamax.html [R=301]
# Réécriture ordinaire des URLs propres
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule ^(.+)(.html)?$ index.php?page=$1 [QSA]
RewriteRule ^(.+)(.htm)?$ index.php?page=$1 [QSA]
# Fin de la réécriture
Messages : 8,242
Sujets : 58
Inscription : Dec 2007
Réputation :
0
Essaye en plaçant Code : #Page renommée (ne marche pas)
RewriteCond %{REQUEST_URI} ^/nombre-de-tables-ouvertes-winamax.html
RewriteRule ^(.*) http://pokertoolsonline.fr/poker-tools-online/multi-tabling-winamax.html [L,R=301]
AVANT Code : # Pour rediriger www.pokertoolsonline.fr vers pokertoolsonline.fr
Messages : 8,242
Sujets : 58
Inscription : Dec 2007
Réputation :
0
Essaye en plaçant Code : #Page renommée (ne marche pas)
RewriteCond %{REQUEST_URI} ^/nombre-de-tables-ouvertes-winamax.html
RewriteRule ^(.*) http://pokertoolsonline.fr/poker-tools-online/multi-tabling-winamax.html [L,R=301]
AVANT Code : # Pour rediriger www.pokertoolsonline.fr vers pokertoolsonline.fr
Messages : 246
Sujets : 20
Inscription : Feb 2011
Réputation :
0
Alors là, devinez quoi !
J'ai déplacé la redirection, comme indiqué par Jean Le Chauve... mais toujours rien.
Du coup, j'ai supprimé la quasi-totalité du .htaccess (un peu énervée la fille) !
Et là, ô magie du Web, les redirections s'effectuaient toujours... à l'insu de mon plein gré...
Un fantôme dans mon browser ou quoi ?
J'ai donc testé sur 3 autres navigateurs... et là, tout s'est mis à FONCTIONNER PARFAITEMENT sur les 3 !
Donc, en clair, j'ai vidé le cache de Firefox et tout est rentré dans l'ordre (en positionnant le code avant ou après la 1ère redirection, d'ailleurs, tout marche bien).
Bref, je ne savais pas que le cache pouvait conserver les redirections... c'est peut-être spécifique à Firefox...?
Quoi qu'il en soit, tout marche bien, merci à tous les 2 pour votre aide !
(J'indique "Résolu")
Messages : 246
Sujets : 20
Inscription : Feb 2011
Réputation :
0
Alors là, devinez quoi !
J'ai déplacé la redirection, comme indiqué par Jean Le Chauve... mais toujours rien.
Du coup, j'ai supprimé la quasi-totalité du .htaccess (un peu énervée la fille) !
Et là, ô magie du Web, les redirections s'effectuaient toujours... à l'insu de mon plein gré...
Un fantôme dans mon browser ou quoi ?
J'ai donc testé sur 3 autres navigateurs... et là, tout s'est mis à FONCTIONNER PARFAITEMENT sur les 3 !
Donc, en clair, j'ai vidé le cache de Firefox et tout est rentré dans l'ordre (en positionnant le code avant ou après la 1ère redirection, d'ailleurs, tout marche bien).
Bref, je ne savais pas que le cache pouvait conserver les redirections... c'est peut-être spécifique à Firefox...?
Quoi qu'il en soit, tout marche bien, merci à tous les 2 pour votre aide !
(J'indique "Résolu")
Messages : 246
Sujets : 20
Inscription : Feb 2011
Réputation :
0
PS: Quand même, suis vraiment trop blonde sur ce coup-là...
Désolée pour le dérangement...
Messages : 246
Sujets : 20
Inscription : Feb 2011
Réputation :
0
PS: Quand même, suis vraiment trop blonde sur ce coup-là...
Désolée pour le dérangement...
Messages : 10,864
Sujets : 164
Inscription : Dec 2008
Réputation :
0
Messages : 10,864
Sujets : 164
Inscription : Dec 2008
Réputation :
0
|