Author Topic: Vbulletin url to Smf url  (Read 466 times)

sundar

  • Site Manager
  • Full Member
  • *****
  • Posts: 86
  • Total likes: 1
  • Karma: +1/-0
  • Gender: Male
  • Thirsty Knowledge...
    • View Profile
    • Can talk anything
Vbulletin url to Smf url
« on: September 17, 2018, 04:13:21 PM »
Here u can use this htaccess code to redirect all ur vbulletin non Vb SEO url and vbulletin Vb SEO url to smf

Code: [Select]
RewriteEngine On
RewriteBase /
Redirect /index.htm /forum_smf/

# SMF rewrites for vBulletin after vBSEO removed (including forum directory)
RewriteCond %{QUERY_STRING} ^t=([0-9]+)&page=[0-9]+&p=([0-9]+)#[0-9]+(.*)?/?$ [OR]
RewriteCond %{QUERY_STRING} ^t=([0-9]+)&page=[0-9]+&p=([0-9]+)(.*)?/?$
RewriteRule ^(forum)?/?showthread.php$ /forum_smf/index.php?topic=%1.msg%2#msg%2 [L,R=301]

RewriteCond %{QUERY_STRING} ^t=([0-9]+)&page=[0-9]+(.*)?/?$ [OR]
RewriteCond %{QUERY_STRING} ^t=([0-9]+)(.*)?/?$
RewriteRule ^(forum)?/?showthread.php$ /forum_smf/index.php?topic=%1.0 [L,R=301]

RewriteCond %{QUERY_STRING} ^f=([0-9]+)&page=[0-9]+(.*)?/?$ [OR]
RewriteCond %{QUERY_STRING} ^f=([0-9]+)(.*)?/?$
RewriteRule ^(forum)?/?forumdisplay.php$ /forum_smf/index.php?board=%1.0 [L,R=301]

RewriteCond %{QUERY_STRING} ^do=newthread.f=([0-9]+)(.*)?/?$
RewriteRule ^(forum)?/?newthread.php$ /forum_smf/index.php?board=%1.0 [L,R=301]

# SMF rewrites for vBulletin before vBSEO removed
RewriteRule ^f[\d]+/.+-([\d]+).*/index([\d]+).html/?$ /forum_smf/index.php?topic=$1.0? [L,R=301]
RewriteRule ^f([\d]+)/index([\d]+).html/?$ /forum_smf/index.php?board=$1.0? [L,R=301]
RewriteRule ^f[\d]+/.+-([\d]+)-post([\d]+)/?$ /forum_smf/index.php?topic=$1.msg$2#msg$2? [L,R=301]
RewriteRule ^f[\d]+/.+-([\d]+).*/?$ /forum_smf/index.php?topic=$1.0? [L,R=301]
RewriteRule ^f([\d]+)/?$ /forum_smf/index.php?board=$1.0? [L,R=301]
RewriteRule ^archive/index.php/t-([\d]+).*html/?$ /forum_smf/archive2.php?topic=$1.0? [L,R=301]
RewriteRule ^archive/index.php/f-([\d]+).*html/?$ /forum_smf/archive2.php?board=$1.0? [L,R=301]
RewriteRule ^archive/index.php/?$ /forum_smf/archive2.php? [L,R=301]
RewriteRule ^members/([\d]+).html/?$ /forum_smf/index.php?action=profile;u=$1? [L,R=301]

# SMF rewrite for cms author
RewriteCond %{QUERY_STRING} ^author/([0-9]+)-.*/?$ [OR]
RewriteCond %{QUERY_STRING} ^r=author/([0-9]+)-.*/?$
RewriteRule ^cms/list.php$ /forum_smf/index.php?action=profile;u=%1? [L,R=301]

# SMF rewrite for calendar
RewriteRule ^calendar\.php /forum_smf/index.php?action=calendar? [L,R=301]

# Rewrite all non-existent directories and folders to /forum_smf/index.php
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /forum_smf/index.php? [QSD,L,R=301]


Sent from my iPhone using Tapatalk
« Last Edit: September 17, 2018, 06:27:17 PM by sundar »
Always TAG your threads

  • Download all the schematics here Direct download
  • Stay connected with SMMobiles on

 

SimplePortal 2.3.7 © 2008-2021, SimplePortal