[Résolu] Un petit problème de Redirection 301 ?

Note de ce sujet :
  • Moyenne : 0 (0 vote(s))
  • 1
  • 2
  • 3
  • 4
  • 5
#1
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...
#1
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 dans ce sujet

Atteindre :


Utilisateur(s) parcourant ce sujet : 1 visiteur(s)