Question dbseo vbtube custom rewrite rules

Status
Not open for further replies.
Website
https://www.typologycentral.com/forums
Product version
2.0.33
Forum version
vBulletin 4.2.x
#1
Hello, i am installing a video gallery on a customers forum. I wanted to add custom rewrite rules. He has a paid pro version of dbseo. How can i add these to dbseo ?

# YTM
ReWriteRule ^videos-category/(\d+)/(.*)/(\d+)$ ytm.php?do=cat&cid=$1&t=$2&page=$3 [QSA]
ReWriteRule ^videos-category/(\d+)/(.*)$ ytm.php?do=cat&cid=$1&t=$2 [QSA]
ReWriteRule ^videos ytm.php [QSA]
ReWriteRule ^video/(\d+)/(.*)$ ytm.php?do=watch&m=$1&t=$2 [QSA]

I tried

"^ytm\.php$" => "videos",
"^ytm\.php?do=watch&m=$1&t=$2$" => "video/(\d+)/(.*)"

but no success.

Thank you
Murat
 

Belazor

Staff member
Owner
Developer
Customer
#2
Are you able to provide any more information other than "no success"? Have you tried following the example rewrite rules?

Code:
//'calendar\.php\?(c=1&)?week=(\d+)&nojs=1' => 'calendar/week-$2/nojs/[NF]'
So in other words, something like

Code:
'^ytm\.php?do=watch&m=(\d+)&t=(.*)$' => 'video/$1/$2/'
Etc
 
#3
I have added this to dbseo custom rewrite rules:

'^ytm\.php$' => 'videos',
'^ytm\.php?do=watch&m=(\d+)&t=(.*)$' => 'video/$1/$2/'

The index page is rewritten and working (rule 1)
The page where i watch videos is not working: Page not found

Thanks
 

Attachments

Belazor

Staff member
Owner
Developer
Customer
#4
You may need to adjust the custom rewrite rules - you can experiment with different URLs and see what happens :)

You may also be able to stick the rules in a htaccess file, above the DBSEO rules.
 
#6
I have been importing a set of custom urls, modifying the file to include a url for every video we add which is extremely tedious. If there is a way to automate the urls for the sitemap, it would be most helpful.
 

Belazor

Staff member
Owner
Developer
Customer
#7
Here are some examples of the individual video page URLs

What makes us happy?

Frank Abagnale - Catch Me If You Can

There is a number assigned and a title.

How would this be rewritten? '^ytm\.php?do=watch&m=(\d+)&t=(.*)$' => 'video/$1/$2/'
vBTubeMurat Belazor
Please see this post: dbseo vbtube custom rewrite rules

I have been importing a set of custom urls, modifying the file to include a url for every video we add which is extremely tedious. If there is a way to automate the urls for the sitemap, it would be most helpful.
Unfortunately that is not possible at this time without custom programming, sorry :(

Basically, what would need to happen is the same thing as we do with, f.ex. the DragonByte Gallery integration; add-on support for rewrite rules and sitemaps. It's a complex and time-consuming process so it's not something I would be able to throw together for you unfortunately.
 

Belazor

Staff member
Owner
Developer
Customer
#9
If you want them implemented in the sitemap then yes that would be the way to do it at this time.
 

DragonByte Technologies

Company Information
Staff member
Company Info
#10
Hello vBTubeMurat,

This ticket has now been closed with the status Answered.

We hope your issue or question has been addressed to your satisfaction. If not, please feel free to re-open it by clicking this link.

If you have any further issues or questions, please feel free to start a new support ticket via the button at the top of every page.

Thank you!
 
Status
Not open for further replies.

DragonByte SEO

vBulletin 3.8.x vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
6,151
Customer rating
0.00 star(s) 0 ratings
Top