Question Issue with vbgallery URL's

Status
Not open for further replies.

tavenger5

Customer
I'm having an issue with URL's being messed with in vbgallery. After a comment is made or an image is uploaded it appears the URL is being rewritten and, in my case, 'gallery' is being taken out. I've added ^gallery/(.*) to the exclude list, but it doesn't seem to make a difference. I've also added ^gallery/showimage.php and ^gallery/upload.php

One thing I noticed that may be a hint...

A slash is being added after showimage.php:
Code:
http://nikonites.com/showimage.php/?i=43240&catid=newimages&postid=4090&anchor=1

If you add back in /gallery to the URL it redirects to this:
Code:
http://nikonites.com/showimage.php/?i=43240&catid=newimages#post4090
(notice that postid= has been rewritten to post4090)

If you take out the slash after showimage.php and add in gallery you get the right URL: Butterfly - Nikonites Gallery

Note that is only works after post4090 is in the correct format. Otherwise it redirects to the wrong URL.
 
You can try adding the problematic .php files to the exclusion list in the general settings for this mod.
 
Can you show me exactly what's been added to the exclusion list just now please?
 
actually, I noticed that the slash isn't being put in anymore after showimage.php/ but it's still behaving the same way otherwise.
 
showimage.php
upload.php
browseimages.php

I also tried

^showimage\.php
^upload\.php
^browseimages\.php

Didn't make a differene
 
What's the contents of your .htaccess file?

Have you tried disabling all other modifications other than PP and DBSEO?
 
What's the contents of your .htaccess file?
Code:
RewriteEngine On

Options +FollowSymLinks

RewriteCond %{HTTP_HOST} !^nikonites\.com
RewriteRule (.*) http://nikonites.com/$1 [R=301,L]


RewriteCond %{REQUEST_URI} !(admincp/|dbseocp/|modcp/|cron|mobiquo|forumrunner|api\.php|reviewpost/|classifieds/|photopost/|gallery/)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ dbseo.php [L,QSA]

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

FYI, I added in gallery just now and tested, but that doesn't seem to work either.

Have you tried disabling all other modifications other than PP and DBSEO?

I haven't, but that's the next step. Is dbseo using a hook somewhere to exclude specific scripts from being rewritten? I ask because I'm not sure what hook could be interfering with dbseo. I did try disabling dbseo and that didn't seem to make a difference. I do know that everything worked fine with vbseo.

There are no rewrite rules specific to vbgallery.
 
Last edited:
Try also removing the .htaccess entries for DBSEO and then try it with DBSEO disabled.
 
Okay I tried that and it was still not working correctly. It looks like the problem is both with the software and with dbseo rewriting the post in the URL though.

I have no idea why it was working before since I didn't have any rewrite rules specific to vbgallery. To fix I wrote some rewrite rules into .htaccess to redirect to the proper url while leaving the file exclusions in dbseo.

Thanks for your help!
 
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,191
Customer rating
5.00 star(s) 1 ratings
Back
Top