PDA

View Full Version : Converting from vBSEO or DBSEO to vB4.x Friendly URLs


djbaxter
02-21-2018, 04:17 PM
Just posted this in response to a question at vBulletin.com but I wouldn't be surprised if it gets deleted over there so reposting here.

https://www.vbulletin.com/forum/forum/vbulletin-4/vbulletin-4-questions-problems-and-troubleshooting/4386678-remove-dragonbyte-seo

The member posted:


Remove Dragonbyte Seo
Mon 19th Feb '18, 6:39am
Hello, I have the DragonByte SEO plugin installed in my forum, and I want to remove it, I asked the professional support of DragonByte and they respond to me that:

(We do not provide any tools for redirecting DBSEO URLs back to vB4 URLs in the event of an uninstall, sorry)

Can anybody help me?

I would like to uninstall dragonbyte seo, but I do not want to lose my indexed URLs or external links, what should I do? What do I put in the .htaccess to avoid url errors, thanks.

This is my current .htaccess: htacces.txt

his is my current url configuration with dragonbyte seo: dbseo-export.txt

Thanks.


That's ridiculous, in my opinion. If they sell and support a product, they should also support uninstalling that product.

I have never used DBSEO but I have uninstalled vBSEO from several vBulletin 4.x installations. It's a time-consuming process but the following works.

First, you need to identify what rewrite rules are currently being used, or in other words what your URLs currently look like.

Then, you need to use notepad or something to list the names and forum numbers of all your forums and categories and tags; you'll obtain these from Forum Management in your ACP.

Finally, you will need to add redirects to your .htaccess file.

For vBSEO, the following assumes you want to convert to the vBulletin 4.x Basic Friendly URLs (set these in Settings .. Options >> Friendly URLs). Add these near the top of your .htaccess file:

Options +FollowSymLinks

# Some servers require the Rewritebase directive to be enabled (remove '#' at the beginning to activate)
# Please note: when enabled, you must include the path to your root vB folder (i.e. RewriteBase /forums/)
RewriteBase /
RewriteEngine On

#rewrite old vBSEO thread and post URLs: this is the easy part
RewriteRule [^/]+/([0-9]+)-[^/]+\.html http(s)://YOURDOMAIN.COM/showthread.php?t=$1 [L,R=301]

# Redirecting the rest is the time-consuming part

#redirect tags
Redirect 301 /tags/tagname.html http(s)://YOURDOMAIN.COM/tags.php?tag=tagname
#repeat for all tags and place this at the end of your list:
Redirect 301 /tags/ http(s)://YOURDOMAIN.COM/tags.php

#redirect old vBSEO forum categories
Redirect 301 /name-of-category/ http(s)://YOURDOMAIN.COM/forumdisplay.php?XXname-of-category
#replace XX with the forum number obtained from your ACP and repeat for all categories


#redirect old vBSEO forums
Redirect 301 /forum-name/ http(s)://YOURDOMAIN.COM/forumdisplay.php?XXforum-name
#replace XX with the forum number from your ACP and repeat for all forums

romaine
02-23-2018, 12:33 PM
The best way to do this is create a temp sitemap which will generate all urls of vBseo or dbseo and after that you will get those urls from sitemap file and use Redirect 301 to redirect them to vB4.x Friendly URLs.

djbaxter
02-23-2018, 12:39 PM
and use Redirect 301 to redirect them to vB4.x Friendly URLs.

I believe that is the part the OP (and most people) was having difficulty with.