Ancienne URL non redirigé [résolu]

Forum de support du Zéro duplicate.
Solution de redirections HTTP 301 personnalisées pour phpBB2.

Modérateur: Modérateurs

Ancienne URL non redirigé [résolu]

Messagede biloute » Mar Mai 29, 2007 7:53 am

Bonjour,

j'ai installé le mod SEO Simple+zero duplicate simple sur mon site. La rééciture fonctionne, cependant si je prend une ancienne adresse de mon site, je constate que celle-ci n'est pas redirigé! (exemple: http://www.coyotte.info/forum/ftopic2166-0-asc-30.html)

Si quelqu'un a une idée!

Voilà mon htaccess au cas où.
Code: Tout sélectionner
# You could need to un-comment the following line
# Options +FollowSymlinks
RewriteEngine On
RewriteBase /

#########################################################
# forum SEO REWRITE RULES                    #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM INDEX (un-comment if used)
RewriteRule ^forum/index\.html$ /forum/index.php [QSA,L,NC]
# CATEGORIES
RewriteRule ^forum/cat([0-9]+)\.html$ /forum/index.php?c=$1 [QSA,L,NC]
# PAGINATED FORUM
RewriteRule ^forum/forum([0-9]+)-([0-9]+)\.html$ /forum/viewforum.php?f=$1&start=$2 [QSA,L,NC]
# FORUM
RewriteRule ^forum/forum([0-9]+)\.html$ /forum/viewforum.php?f=$1 [QSA,L,NC]
# PAGINATED TOPIC
RewriteRule ^forum/topic([0-9]+)-([0-9]+)\.html$ /forum/viewtopic.php?t=$1&start=$2 [QSA,L,NC]
# TOPIC
RewriteRule ^forum/topic([0-9]+)\.html$ /forum/viewtopic.php?t=$1 [QSA,L,NC]
# POST
RewriteRule ^forum/post([0-9]+)\.html$ /forum/viewtopic.php?p=$1 [QSA,L,NC]
#PROFILES
RewriteRule ^forum/membre([0-9]+)\.html$ /forum/profile.php?mode=viewprofile&u=$1 [QSA,L,NC]
# END forum PAGES
#####################################################

#########################################################
# GYM SITEMAPS AND RSS REWRITE RULES         #
#########################################################
# AUTHOR : dcz http://www.phpbb-seo.com/
# STARTED : 2006/02/22
########################
# RSS main
RewriteRule ^forum/rss-?(l|s)?-?(m)?\.(xml(\.gz)?)$ /forum/rss.php?$1&$2 [L]
# RSS forums
RewriteRule ^forum/forums-rss-?(l|s)?-?(m)?\.(xml(\.gz)?)$ /forum/rss.php?forum&c&$1&$2 [L]
# RSS all
RewriteRule ^forum/([a-zA-Z0-9_-]+)-rss([0-9]*)-?(l|s)?-?(m)?\.(xml(\.gz)?)$ /forum/rss.php?$1=$2&$3&$4 [L]
# RSS forum topics
RewriteRule ^forum/.+-rf([0-9]+)-?(l|s)?-?(m)?\.(xml(\.gz)?)$ /forum/rss.php?forum=$1&$2&$3 [L]
# SitemapIndex
RewriteRule ^forum/sitemaps\.(xml(\.gz)?)$ /phpbb/sitemap.php [L]
# Sitemap modules
RewriteRule ^forum/([a-zA-Z0-9_-]+)-sitemap\.(xml(\.gz)?)$ /forum/sitemap.php?$1 [L]
# Forum Sitemaps
RewriteRule ^forum/.+-gf([0-9]+)\.(xml(\.gz)?)$ /forum/sitemap.php?forum=$1 [L]
# Yahoo! urllist.txt
RewriteRule ^forum/urllist\.(txt(\.gz)?)$ /forum/urllist.php [L]
#########################################################
# END GYM SITEMAPS AND RSS REWRITE RULES      #
#########################################################

RewriteRule ^forum/forums.* index.php
RewriteRule ^forum/mforum([0-9]*).* viewforum.php?f=$1&mark=topics
RewriteRule ^forum/viewforum([0-9]*)-([0-9]*)-([0-9]*).* viewforum.php?f=$1&topicdays=$2&start=$3
RewriteRule ^forum/forum([0-9]*).* viewforum.php?f=$1
RewriteRule ^forum/ptopic([0-9]*).* viewtopic.php?t=$1&view=previous
RewriteRule ^forum/ntopic([0-9]*).* viewtopic.php?t=$1&view=next
RewriteRule ^forum/stopic([0-9]*)-([0-9]*).* viewtopic.php?t=$1&watch=topic&start=$2
RewriteRule ^forum/utopic([0-9]*)-([0-9]*).* viewtopic.php?t=$1&unwatch=topic&start=$2
RewriteRule ^forum/ftopic([0-9]*)-([0-9]*)-([a-zA-Z]*)-([0-9]*).* viewtopic.php?t=$1&postdays=$2&postorder=$3&start=$4
RewriteRule ^forum/ftopic([0-9]*)-([0-9]*).* viewtopic.php?t=$1&start=$2
RewriteRule ^forum/ftopic([0-9]*).* viewtopic.php?t=$1
RewriteRule ^forum/ftopic([0-9]*).html viewtopic.php?t=$1&start=$2&postdays=$3&postorder=$4&highlight=$5
RewriteRule ^forum/setopic_([0-9]*)-([a-zA-Z0-9]*).* viewtopic.php?t=$1&highlight=$2
RewriteRule ^forum/sutra([0-9]*).* viewtopic.php?p=$1
RewriteRule ^forum/newtopic([0-9]*).* viewtopic.php?t=$1&view=newest


Voilà ce que j'obtiens en testant:
Code: Tout sélectionner
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>404 Not Found</TITLE>
</HEAD><BODY>
<H1>Not Found</H1>
The requested URL /viewtopic.php was not found on this server.<P>
<P>Additionally, a 404 Not Found
error was encountered while trying to use an ErrorDocument to handle the request.
<HR>
<ADDRESS>Apache/1.3.37 Server at www.coyotte.info Port 80</ADDRESS>
</BODY></HTML>
Dernière édition par biloute le Mar Mai 29, 2007 9:42 am, édité 1 fois.
Avatar de l’utilisateur
biloute
PR3
PR3
 
Messages: 399
Inscription: Mer Avr 25, 2007 7:18 am

Publicité

Messagede biloute » Mar Mai 29, 2007 9:42 am

C'est bon, problème réglé, nounouille comme je suis j'avais omis de rewrité entièrement la partie du htaccess de Dr DLP, donc ça donne ça:
Code: Tout sélectionner
RedirectMatch permanent ^/$ http://www.coyotte.info/forum/

DirectoryIndex index.html index.htm portal.php index.php
<Files 403.shtml>
order allow,deny
allow from all
</Files>

deny from 85.255.114.255
deny from 87.118.108.

# You could need to un-comment the following line
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^coyotte\.info$ [NC]
RewriteRule ^(.*) http://www.coyotte.info/$1 [QSA,L,R=301]
RewriteBase /

#########################################################
# forum SEO REWRITE RULES                    #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM INDEX (un-comment if used)
RewriteRule ^forum/index\.html$ /forum/index.php [QSA,L,NC]
# CATEGORIES
RewriteRule ^forum/cat([0-9]+)\.html$ /forum/index.php?c=$1 [QSA,L,NC]
# PAGINATED FORUM
RewriteRule ^forum/forum([0-9]+)-([0-9]+)\.html$ /forum/viewforum.php?f=$1&start=$2 [QSA,L,NC]
# FORUM
RewriteRule ^forum/forum([0-9]+)\.html$ /forum/viewforum.php?f=$1 [QSA,L,NC]
# PAGINATED TOPIC
RewriteRule ^forum/topic([0-9]+)-([0-9]+)\.html$ /forum/viewtopic.php?t=$1&start=$2 [QSA,L,NC]
# TOPIC
RewriteRule ^forum/topic([0-9]+)\.html$ /forum/viewtopic.php?t=$1 [QSA,L,NC]
# POST
RewriteRule ^forum/post([0-9]+)\.html$ /forum/viewtopic.php?p=$1 [QSA,L,NC]
#PROFILES
RewriteRule ^forum/membre([0-9]+)\.html$ /forum/profile.php?mode=viewprofile&u=$1 [QSA,L,NC]
# END forum PAGES
#####################################################
RewriteRule ^forum/forums.* index.php
RewriteRule ^forum/mforum([0-9]*).* forum/viewforum.php?f=$1&mark=topics
RewriteRule ^forum/viewforum([0-9]*)-([0-9]*)-([0-9]*).* forum/viewforum.php?f=$1&topicdays=$2&start=$3
RewriteRule ^forum/forum([0-9]*).* forum/viewforum.php?f=$1
RewriteRule ^forum/ptopic([0-9]*).* forum/viewtopic.php?t=$1&view=previous
RewriteRule ^forum/ntopic([0-9]*).* forum/viewtopic.php?t=$1&view=next
RewriteRule ^forum/stopic([0-9]*)-([0-9]*).* forum/viewtopic.php?t=$1&watch=topic&start=$2
RewriteRule ^forum/utopic([0-9]*)-([0-9]*).* forum/viewtopic.php?t=$1&unwatch=topic&start=$2
RewriteRule ^forum/ftopic([0-9]*)-([0-9]*)-([a-zA-Z]*)-([0-9]*).* forum/viewtopic.php?t=$1&postdays=$2&postorder=$3&start=$4
RewriteRule ^forum/ftopic([0-9]*)-([0-9]*).* forum/viewtopic.php?t=$1&start=$2
RewriteRule ^forum/ftopic([0-9]*).* forum/viewtopic.php?t=$1
RewriteRule ^forum/ftopic([0-9]*).html forum/viewtopic.php?t=$1&start=$2&postdays=$3&postorder=$4&highlight=$5
RewriteRule ^forum/setopic_([0-9]*)-([a-zA-Z0-9]*).* forum/viewtopic.php?t=$1&highlight=$2
RewriteRule ^forum/sutra([0-9]*).* forum/viewtopic.php?p=$1
RewriteRule ^forum/newtopic([0-9]*).* forum/viewtopic.php?t=$1&view=newest
Avatar de l’utilisateur
biloute
PR3
PR3
 
Messages: 399
Inscription: Mer Avr 25, 2007 7:18 am

Messagede Arf » Mar Mai 29, 2007 2:27 pm

Parfois on trouve ses erreurs tout seul.

Que c'est beau ;)
Arf
PR1
PR1
 
Messages: 188
Inscription: Ven Jan 19, 2007 10:12 am

Messagede biloute » Mar Mai 29, 2007 3:34 pm

Comme quoi, en prenant son temps et en grattant un peu... :wink:
Avatar de l’utilisateur
biloute
PR3
PR3
 
Messages: 399
Inscription: Mer Avr 25, 2007 7:18 am


Retourner vers Zéro duplicate phpBB2

 


  • Articles en relation
    Réponses
    Vus
    Dernier message

Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 2 invités