Moddis
Active member
I am migrating over from Vb with vbSEO installed to XenForo.
Instead of using other suggested methods of using rewrite rules to redirect vbSEO links to VB Links and then have a script redirect those url's to XenForo links. As a backup, in case someone has an old VB link(non vbSEO), I will use the script Here to redirect those links to XenForo. I think this method will save me server resources not having to redirect 2x and i was also afraid it might hurt with Google having a double redirect to final destination.
Anyway, I already wrote 3 rules that seem to work fine but i do have a few questions before I go and do the dozens of other links...
---------------------------
*Forum Path*
vbSEO Setup: [forum_title]-[forum_id]
RewriteRule ^[^/]+-([0-9]+)/?$ /forums/$1/ [R=301,L]
*Thread*
vbSEO Setup: [forum_title]-[forum_id]/[thread_title]-[thread_id]/
RewriteRule [^/]+-[0-9]+/[^\.]+-([0-9]+)/?$ /threads/$1/ [R=301,L]
*Thread Page*
vbSEO Setup: [forum_title]-[forum_id]/[thread_title]-[thread_id]/index[thread_page].html
RewriteRule [^/]+-[0-9]+/[^\.]+-([0-9]+)/index([0-9]+)\.html /threads/$1/page-$2 [R=301,NC,L]
-------------------------
Instead of using other suggested methods of using rewrite rules to redirect vbSEO links to VB Links and then have a script redirect those url's to XenForo links. As a backup, in case someone has an old VB link(non vbSEO), I will use the script Here to redirect those links to XenForo. I think this method will save me server resources not having to redirect 2x and i was also afraid it might hurt with Google having a double redirect to final destination.
Anyway, I already wrote 3 rules that seem to work fine but i do have a few questions before I go and do the dozens of other links...
---------------------------
*Forum Path*
vbSEO Setup: [forum_title]-[forum_id]
RewriteRule ^[^/]+-([0-9]+)/?$ /forums/$1/ [R=301,L]
*Thread*
vbSEO Setup: [forum_title]-[forum_id]/[thread_title]-[thread_id]/
RewriteRule [^/]+-[0-9]+/[^\.]+-([0-9]+)/?$ /threads/$1/ [R=301,L]
*Thread Page*
vbSEO Setup: [forum_title]-[forum_id]/[thread_title]-[thread_id]/index[thread_page].html
RewriteRule [^/]+-[0-9]+/[^\.]+-([0-9]+)/index([0-9]+)\.html /threads/$1/page-$2 [R=301,NC,L]
-------------------------
- Are there any advantages/issues of using one over the other?
- [0-9]+ OR [\d]+
- [^\.]+ OR . OR [A-Za-z0-9-]+
- The links I redirect vbSEO links to (/threads/$1/) also seem to have an internal redirect to: /threads/thread_title-$1/. Would it makes sense to redirect directly to that (again possibly helping with google or server load?)
- *Example* (vbSEO URL: [forum_title]-[forum_id]/[thread_title]-[thread_id]/) Use:
- RewriteRule [^/]+-[0-9]+/([^\.]+)-([0-9]+)/?$ /threads/$1.$2/ [R=301,L]
- Instead of:
- RewriteRule [^/]+-[0-9]+/[^\.]+-([0-9]+)/?$ /threads/$1/ [R=301,L]
- *Example* (vbSEO URL: [forum_title]-[forum_id]/[thread_title]-[thread_id]/) Use: