Well, this rewriterule should handle the old topic urls :
- Code: Select all
RewriteRule ^boards/[a-z0-9-]+-([pt])([0-9]+)\.html$ /boards/viewtopic.php?$1=$2 [L]
I'd rather use :
- Code: Select all
RewriteRule ^boards/[a-z0-9-]+-(p|t)([0-9]+)\.html$ /boards/viewtopic.php?$1=$2 [QSA,L,NC]
But if it was previously working in the boards/ dir, and if of course the phpBB3 url do work (with same path and slashes), there are no reasons why it would not work.
Thes rewriterules seems pretty wierdly done to mee too :
- Code: Select all
RewriteRule ^boards/([a-zA-Z0-9_]+),([^/,]+),([^/,]*)([^/]*\.html)$ boards/$1$4?$2=$3 [QSA,N]
RewriteRule ^boards/[a-z0-9-]+-([pt])([0-9]+),([^/,]+),([^/,]*)([^/]*\.html)$ boards/viewtopic$5?$1=$2&$3=$4 [QSA,N]
RewriteRule ^boards/[a-z0-9-]+-f([0-9]+),([^/,]+),([^/,]*)([^/]*\.html)$ boards/viewforum$4?f=$1&$2=$3 [QSA,N]
The
N flag is not of the kind to use without caution, and I don't find the obvious reason why it would be needed here.
I as well find it a bit strange to see that the viewtopic and viewforum suffixes are set through mod_rewrite, it's not like the script suffix was going to change!
So it would probably be better to run simpler and more focused rewriterules here, but we would need to know every type of url to handle before. On the other hand, if these worked, there is no real reason why they would not now.
You could try this instead, which should do the same job in case you have trouble :
- Code: Select all
RewriteRule ^boards/[a-z0-9_-]+-(p|t)([0-9]+),([^/,]+),([^/,]*)[^/]*\.html$ boards/viewtopic.php?$1=$2&$3=$4 [QSA,L,NC]
RewriteRule ^boards/[a-z0-9_-]+-f([0-9]+),([^/,]+),([^/,]*)[^/]*\.html$ boards/viewforum.php?f=$1&$2=$3 [QSA,L,NC]
RewriteRule ^boards/([a-z0-9_]+),([^/,]+),([^/,]*)[^/]*\.html$ boards/$1.php?$2=$3 [QSA,L,NC]
Now if -http://www.mysite.com/boards/viewtopic.php?p=6573992 was indexed and is not currently redirected, make sure you installed / activated the zero dupe with the post redirection option at least set to "guests".