Status
Not open for further replies.

the case

Customer
Hi,

When I installed DB SEO lite on the forum I made the required changes to the friendly URLS options page in the install instructions.

The site originally used the vBulletin rewrite rules, in the structure domain.com/forums/threads/post-name since installing DBSEO this is now domain.com/forums/forum-name/post-name.html.

As a consequence pages previously indexed by google using the old structure now if clicked through from google display a page with the error "Invalid Attachment specified. If you followed a valid link, please notify the administrator."

Do I need to amend settings in db seo lite to allow the old link to work or do I need to add a rewrite rule to .htaccess, if so what do I need to add.

Help would be appreciated.

Case
 
Open your .htaccess file and find
Code:
RewriteCond %{REQUEST_URI} !(admincp/|dbseocp/|modcp/|cron|vbseo_sitemap|dbseo_sitemap|mobiquo|forumrunner|api\.php|product\.php|branding\.php|arcade_global\.php|401\.shtml|mod_pagespeed_statistics)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ dbseo.php [L,QSA]

Add above
Code:
RewriteRule ^threads/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) /showthread.php?t=$1&page=$2 [R=301,L,QSA]
RewriteRule ^forums/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) /forumdisplay.php?f=$1&page=$2 [R=301,L,QSA]
RewriteRule ^entries/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) /entry.php?b=$1&page=$2 [R=301,L,QSA]
 
Hi,

Thanks for the quick response, the only issue I have after adding the code is that it is redirecting to domain.com/showthread.php?t=nnnn&page=

It seems to be missing /forums/ If I add that manually to change it to domain.com/forums/showthread.php?t=nnnn&page= it works perfectly. I thought that be adding /forums/ before showthead.php in the new code it would work, but it doesn't seem to.

I guess I'm being stupid, what do I need to do?

Thanks

Case
 
Status
Not open for further replies.

Similar threads

Legacy DragonByte SEO

vBulletin 3.8.x vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
7,185
Customer rating
5.00 star(s) 1 ratings
Back
Top