Status
Not open for further replies.

RedWS600

Customer
Hi, I've moved from VBSEO. Most of the website is now working fine, however there are a couple of area which I'm having trouble with.

One is Media(VB Tube), the other is Garage
Both of these mods supplied a custom rewrite rule to pop into VBSEO. I see DBSEO also has the same area, this was imported from SBSEO.

//==========================================================================
// Sample Custom Rewrite Rule: showgroup.php as forumleaders.html (Remove the '//' in front of the rule to enable).
//==========================================================================
'^showgroups\.php$' => 'forumleaders.html'

//==========================================================================
// Sample Custom Rewrite Rules: calendar as static pages (Remove the '//' in front of the rules to enable).
// Note: Enable the calendar dropdown redirect rule within the 'Custom Redirects' tab at the left.
//==========================================================================
//'calendar\.php$' => 'calendar/'
//'^calendar\.php\?c=1$' => 'calendar/'
//'^calendar\.php\?(c=1&)?do=(display\w+?)(&year=)?$' => 'calendar/$2/[NF]'
//'calendar\.php\?(c=1&)?nojs=1' => 'calendar/nojs/[NF]'
//'calendar\.php\?(c=1&)?do=(display.+?)&nojs=1' => 'calendar/$2/nojs/[NF]'
//'calendar\.php\?(c=1&)?week=(\d+)&nojs=1' => 'calendar/week-$2/nojs/[NF]'
//'calendar\.php\?(c=1&)?month=(\d+)&year=(\d+)&nojs=1' => 'calendar/$3/$2/nojs/[NF]'
//'^calendar\.php\?do=getinfo&(c=1&)?day=(\d+)-(\d+)-(\d+)(&c=1)?$' => 'calendar/$2/$3/$4/'
//'^calendar\.php\?do=getinfo&e=(\d+)(&day=[0-9-]+)?(&c=1)?$' => 'calendar/event-$1/'
//'^calendar\.php\?(s=&)?(c=1&)?(week=&)?month=(\d+)&year=(\d+)(&c=1)?(&do=displaymonth)?$' => 'calendar/$5/$4/'
//'^calendar\.php\?c=1&week=(\d+)(&do=displayweek&month=.+?)?$' => 'calendar/week-$1/'
//'^calendar\.php\?year=(\d+)&month=(\d+)(&c=1)?$' => 'calendar/$1/$2/'
//'^calendar\.php\?do=displayyear&(c=1&)?year=(\d+)$' => 'calendar/$2/'

'^vbtube_show\.php\?do=tube&tubeid=(\d+)&name=(.+)&t=(\d+)&startid=(\d+)&id=(\d+)&pt=(\d+)' => 'videos/$1-$3-$4-$5/$2.html'
'^vbtube_show\.php\?do=tube&tubeid=(\d+)&name=(.+)&startid=(\d+)&id=(\d+)&pt=(\d+)' => 'videos/$1-$3-$4-$5/$2.html'
'^vbtube_show\.php\?do=tube&tubeid=(\d+)&name=(.+)&startid=(\d+)' => 'videos/$1-$4/$2.html'
'^vbtube_show\.php\?do=tube&tubeid=(\d+)&name=(.+)&t=(\d+)' => 'videos/$1/$2.html'
'^vbtube_show\.php\?do=tube&tubeid=(\d+)&name=(.+)' => 'videos/$1/$2.html'
'^vbtube_show\.php\?tubeid=(\d+)&name=(.+)&t=(\d+)&startid=(\d+)&id=(\d+)&pt=(\d+)' => 'videos/$1-$3-$4-$5/$2.html'
'^vbtube_show\.php\?tubeid=(\d+)&name=(.+)&startid=(\d+)&id=(\d+)&pt=(\d+)' => 'videos/$1-$3-$4-$5/$2.html'
'^vbtube_show\.php\?tubeid=(\d+)&name=(.+)&startid=(\d+)' => 'videos/$1-$4/$2.html'
'^vbtube_show\.php\?tubeid=(\d+)&name=(.+)&t=(\d+)' => 'videos/$1/$2.html'
'^vbtube_show\.php\?tubeid=(\d+)&name=(.+)' => 'videos/$1/$2.html'
'^vbtube\.php\?do=cat&id=(.*)&o=(.*)&t=(.+)&page=(.*)' => 'category/$1-$3-$2-$4'
'^vbtube\.php\?do=cat&id=(.*)&o=(.*)&t=(.+)' => 'category/$1-$3-$2-0'
'^vbtube\.php\?do=myfavs&u=(.*)&page=(.*)' => 'my_favorites/$2/$1'
'^vbtube\.php\?do=mymedia&u=(.*)&page=(.*)' => 'my_media/$2/$1'

'^vbtube\.php\?do=list&ctype=2' => 'photo-categories'
'^vbtube\.php\?do=list&ctype=3' => 'adult-categories'

'^vbtube\.php\?do=topvideos&page=(.*)' => 'top_videos-$1'
'^vbtube\.php\?do=topphotos&page=(.*)' => 'top_photos-$1'
'^vbtube\.php\?do=most_viewed&page=(.*)' => 'most_viewed-$1'
'^vbtube\.php\?do=most_voted&page=(.*)' => 'most_voted-$1'
'^vbtube\.php\?do=topvideos' => 'top_videos'
'^vbtube\.php\?do=topphotos' => 'top_photos'
'^vbtube\.php\?do=most_viewed' => 'most_viewed'
'^vbtube\.php\?do=most_voted' => 'most_voted'
'^vbtube\.php\?do=myfavs' => 'my_favorites'
'^vbtube\.php\?do=mymedia' => 'my_media'
'^vbtube\.php\?do=list' => 'video-categories',
'^vbtube\.php\?do=rss' => 'media-rss'
'^youtube_browser\.php' => 'youtube-browser'
'^vbtube\.php' => 'sr-media'
//'^vbtube\.php' => 'media'

// C&D Garage vBSEO Custom Rewrite Rules
'garage\.php$' => 'garage.html'
'garage\.php\?sub_id=(\d+)&page=(.+)' => 'garage-category-$1-$2.html'
'garage\.php\?sub_id=(\d+)' => 'garage-category-$1.html'
'garage\.php\?do=browse&page=(\d+)' => 'garage-browse-$1.html'
'garage\.php\?do=browse' => 'garage-browse.html'
// 'garage\.php\?do=search' => 'garage-search.html'
'garage\.php\?do=search_results&page=(\d+)' => 'garage-search_result-$1.html'
'garage\.php\?do=search_results' => 'garage-search_results.html'
'garage\.php\?do=veh_map' => 'garage-vehicle-map.html'
'garage\.php\?do=business&page=(\d+)' => 'garage-business-$1.html'
'garage\.php\?do=business&page=(\d+)&sort=(.+?)' => 'garage-business-$1-$2.html'
'garage\.php\?do=business$' => 'garage-business.html'
'garage\.php\?do=business&submenu=rated&sort=(.+?)' => 'garage-business-rated-$1.html'
'garage\.php\?do=business&submenu=rated&page=(\d+)&sort=(.+?)' => 'garage-business-rated-$1-$2.html'
'garage\.php\?do=business&submenu=rated' => 'garage-business-rated.html'
'garage\.php\?do=business&submenu=featured&sort=(.+?)' => 'garage-business-featured-$1.html'
'garage\.php\?do=business&submenu=featured&page=(\d+)&sort=(.+?)' => 'garage-business-featured-$1-$2.html'
'garage\.php\?do=business&submenu=featured' => 'garage-business-featured.html'
'garage\.php\?do=business&submenu=&sort=(.+?)' => 'garage-business-sort-$1.html'
'garage\.php\?do=insurance&page=(\d+)' => 'garage-insurance-$1.html'
'garage\.php\?do=insurance' => 'garage-insurance.html'
'garage\.php\?do=shops&page=(\d+)' => 'garage-shops-$1.html'
'garage\.php\?do=shops' => 'garage-shops.html'
'garage\.php\?do=garages&page=(\d+)' => 'garage-garages-$1.html'
'garage\.php\?do=garages' => 'garage-garages.html'
'garage\.php\?do=google_map' => 'garage-google-map.html'
'garage\.php\?do=fuel&page=(\d+)' => 'garage-fuel-tracking-$1.html'
'garage\.php\?do=fuel' => 'garage-fuel-tracking.html'
'garage_fuel\.php\?do=view_user_fuel&id=(\d+)&page=(.+)' => 'garage-view-fuel-tracking-$1-$2.html'
'garage_fuel\.php\?do=view_user_fuel&id=(\d+)' => 'garage-view-fuel-tracking-$1.html'
'garage\.php\?do=event&page=(\d+)' => 'garage-events-$1.html'
'garage\.php\?do=event' => 'garage-events.html'
'garage\.php\?do=club&page=(\d+)' => 'garage-clubs-$1.html'
'garage\.php\?do=club&page=(\d+)&sort=(.+?)' => 'garage-clubs-$1-$2.html'
'garage\.php\?do=club' => 'garage-clubs.html'
'garage\.php\?do=timeslip&page=(\d+)' => 'garage-timeslips-$1.html'
'garage\.php\?do=timeslip' => 'garage-timeslips.html'
'garage\.php\?do=dyno&page=(\d+)' => 'garage-dyno-runs-$1.html'
'garage\.php\?do=dyno' => 'garage-dyno-runs.html'
'garage\.php\?do=laptime&page=(\d+)' => 'garage-laptimes-$1.html'
'garage\.php\?do=laptime' => 'garage-laptimes.html'
'garage\.php\?do=track&page=(\d+)' => 'garage-tracks-$1.html'
'garage\.php\?do=track' => 'garage-tracks.html'
'garage_vehicle\.php\?do=view_vehicle&subdo=images$&order=all&id=(\d+)' => 'garage-vehicle-$1-AllImages-$2.html'
// 'garage_vehicle\.php\?do=view_vehicle&id=(\d+)' => 'garage-vehicle-$1.html'
'garage\.php\?do=user_garage_view&id=(\d+)' => 'garage-user-view-$1.html'
'garage\.php\?do=browse_model&front_model_id=(\d+)&page=(.+)' => 'garage-browse-model-$1-$2.html'
'garage\.php\?do=browse_model&front_model_id=(\d+)' => 'garage-browse-model-$1.html'
// 'garage_comments\.php\?do=view_img_comments&id=(\d+)&page=(.+)' => 'garage-images-comments-$1-$2.html'
// 'garage_comments\.php\?do=view_img_comments&id=(\d+)' => 'garage-images-comments-$1.html'
'garage_comments\.php\?do=viewall&page=(.+?)' => 'garage-all-comments-$1.html'
'garage_comments\.php\?do=viewall' => 'garage-all-comments.html'
'garage\.php\?do=user_garage_view&id=(\d+)' => 'garage-user-view-$1.html'
'garage_modification\.php\?do=view_mod&id=(\d+)' => 'garage-mod-$1.html'
'garage_shops\.php\?do=view_shops&id=(\d+)' => 'garage-view-shop-$1.html'
'garage_garage\.php\?do=view_garage&id=(.+?)' => 'garage-view-garage-$1.html'
'garage_dyno\.php\?do=view_dynocenter&id=(\d+)' => 'garage-view-dynocenter-$1.html'
'garage_insurance\.php' => 'garage-view-insurance.html'
'garage_insurance\.php\?do=view_insurance&id=(\d+)' => 'garage-view-insurance-$1.html'
'garage_attachment\.php\?id=(\d+)' => 'garage-attach-$1.html'
'garage_attachment\.php\?id=(\d+)&attach_type=full' => 'garage-attach-full-$1.html'
'garage_timeslips\.php\?do=view_timeslip&id=(\d+)' => 'garage-view-timeslip-$1.html'
'garage_dyno\.php\?do=view_dyno&id=(\d+)' => 'garage-view-dynorun-$1.html'
'garage_laptime\.php\?do=view_laptime&id=(\d+)' => 'garage-view-laptime-$1.html'
'garage_event\.php\?do=view_event&id=(\d+)' => 'garage-view-event-$1.html'
'garage_club\.php\?do=view_club&id=(\d+)' => 'garage-view-club-$1.html'
'garage_track\.php\?do=view_track&id=(\d+)' => 'garage-view-track-$1.html'
'garage\.php\?do=browse_front_model&front_make_id=(\d+)' => 'garage-browse-make-$1.html'
'garage\.php\?do=browse_model&front_model_id=(\d+)&page=(.+)' => 'garage-browse-model-$1-$2.html'
'garage\.php\?do=browse_model&front_model_id=(\d+)' => 'garage-browse-model-$1.html'
'garage_vehicle\.php\?do=view_vehicle&front_vehicle_id=(\d+)' => 'garage-vehicle-view-$1.html'
'garage_guestbook\.php\?do=add_gb&id=(\d+)' => 'garage-guestbook-comments-$1.html'
'garage_vehicle\.php\?do=view_vehicle&id=(\d+)' => 'garage-view-vehicle-$1.html'
'garage_vehicle\.php\?do=add_vehicle' => 'garage-add-vehicle.html'

My .HTaccess file is
RewriteEngine On
# For security reasons, Option followsymlinks cannot be overridden.
#Options +FollowSymLinks
Options +SymLinksIfOwnerMatch

### DBSEO
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/(admincp|dbseocp|modcp|clientscript|cpstyles|images)/
#Convert to lovercase, We need this as the Telid ad links are upper and lower, and throws you to the wrong page.
#RewriteRule ^/(.*)$ /${lc:$1}
RewriteRule ^(.+)$ dbseo.php [L,QSA]
### End DBSEO

### THIS IS A LITTLE EXTRA SECURITY AND CAN BE REMOVED

RewriteRule ^includes/(.*) index.php
RewriteRule ^vb/(.*) index.php
RewriteRule ^packages/(.*) index.php

Great mod though, I was;'t sure what i was gonna do when VBSEO stopped working, I did disable it and run on the VBulletin's URLs Rewrite, but many of my VBSEO pages are indexed.
 
Try changing the htaccess block to this:
Code:
RewriteCond %{REQUEST_URI} !(admincp/|dbseocp/|modcp/|cron|mobiquo|forumrunner|api\.php)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ dbseo.php [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/(admincp|dbseocp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ dbseo.php [L,QSA]

Other than that, I'm not exactly sure what you're having issues with? Is it a specific rule that's not working?
 
Thanks for the very fast response there, speedy as usual.

I've update the .htaccess with
RewriteCond %{REQUEST_URI} !(admincp/|dbseocp/|modcp/|cron|mobiquo|forumrunner|api\.php)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ dbseo.php [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/(admincp|dbseocp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ dbseo.php [L,QSA]

If I click on Media button on the menu it take me to
Media - Solent Renegades
So far thats good.

Now if i click on any video on that page, for example
Solent Renegades

I get, "Invalid Attachment specified. If you followed a valid link, please notify the administrator"

It does something similar in the Garage section.

You don't have to be logged into view that part of the website. ;)

Also i notice the CharBot on the forum home page isn't working, it does come back to life if I disable dbseo, so probably a rule needs setting. i notice the chatbox using misc.php, so in the ignore pages rules, I popped in misc.php but it didn't help.
 
If your attachment prefix media/ as well, then that would explain it.

In either case, to look into this further I'll need FTP and AdminCP access :)
 
Many thanks for offering to take a look. I've sent PM's with the details.

You offer great customer service. I'm sure more people are going to be coming this way when they need to change from VBSEO. ;)
 
The media links do not appear to be rewritten by DBSEO at all. There is also no DBSEO Custom URL Rewrite format that matches the media links, which is why it falls back to believing it's an attachment (the format is identical to that of attachments).

I reached this conclusion by removing all Custom Rewrite Rules and noticed that the vBTube links were still /media/blah-blah.

Please advise.
 
oh. I'll take a look at the Media settings.

Did you take a look at the garage area? If I click on a vehicle, eg. http://www.solent-renegades.co.uk/garage-vehicle-1-PONTIAC-TRANS-AM.html
It gots for the forum page, I'm guessing its a 404.


I've just pooped into the AdminCP of the mdeai settings, spotted what I dont wrong. Setting should have been set to No. It was set to Yes. doh!.
mod_rewrite & htaccess
If mod_rewrite is installed on your Server, then enable this setting and upload the .htaccess File from vBTube zip Package into your Forum Root Directory. Note that this is for nonvBSeo Users!
Yes No

Maybe something similar for the VBGarage...
 
Last edited:
Ah yes, I've turned of SEO URL's in the Garage plugin. I get the /vbtube_show.php?tubeid=818 type URL's but at least they are working.
I should have spotted these options before. I must have changed them when I turned of VBSEO a few months ago.

So now I can get DBSEO to rewrite them.
 
Let me know if you run into any further problems once you've added the new Custom Rewrite Rules in DBSEO :)
 
How do i re-enable the Custom rewrite rules in DBSEO?
I see the items are in the list, and not commented out. Unless there is a block comment out all that I haven't noticed.
 
No its okay. I can see the changed when I make them. It looks like that /vbtube_show.php?tubeid=818 has alway been like that.

All sorted now.
Thanks for you help Fillip H., its much appreciated.
 
Status
Not open for further replies.

Legacy DragonByte SEO

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