Question redirects partially work

Status
Not open for further replies.

xenigma

Customer
Hi,

I have the vb suite installed at: mysite.com/forum. The following urls redirect correctly to the HTTPS:// versions:

www.mysite.com/
mysite.com/
mysite.com/forum/forum.php

However:

www.mysite.com/forum/forum.php does not redirect to HTTPS://

In my htaccess (located in home/public_html) I have:

#HTTP to HTTPS
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

#Non-WWW to WWW
RewriteCond %{HTTP_HOST} ^mysite.com$
RewriteRule (.*) https://www.mysite.com$1 [R=301,L]

Any ideas why that one redirect doesn't work?


Also, prior to DBSEO I had a redirect in VBSEO for forum.php to /forum/. Is that possible with DBSEO? I'm guessing that it is but a redirect in htaccess has no effect so is the setting somewhere in DBSEOCP?

Also, possibly(?) related to the above, some users are reporting the following when they login:

"Invalid Redirect URL (https://www.mysite.com/forum/)"

Thanks
 
Last edited:
Just a quick addition: setting "Force Forum Directory Index" to "yes" does not strip out forum.php from the url when I click on the forum tab. Actually it makes no difference whether I have that set as "yes" or "no".
 
Sorry, is that the complete contents of your .htaccess file? If so, the reason why nothing is working is because the DBSEO rewrite rules are missing from the .htaccess file :)
 
:) No of course not. I only copied the rules that were relevant to my question. The DBSEO rules are in a htaccess in /forum. I have the other htaccess in the root. DBSEO works great apart from the stuff I mentioned above.
 
Last edited:
For the forum.php to /forum/, you can turn on "Force Forum Directory Index" in order to remove forum.php

The http to https, I don't think that's related to DBSEO?

Here's our .htaccess file:
Code:
	# Force SSL:
	RewriteCond %{HTTPS} off
	RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

	# Force www:
	RewriteCond %{HTTP_HOST} !^$
	RewriteCond %{HTTP_HOST} !^www\. [NC]
	RewriteCond %{HTTPS}s ^on(s)|
	RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
 
As I mentioned above, setting "Force Forum Directory Index" to "yes" does not strip out forum.php from the url when I click on the forum tab. It makes no difference whether I have that set to "yes" or to "no".

Yes, I concede that DBSEO should not be causing the failure of "www" to redirect to "https://www". All I can say is that it was working correctly before DBSEO.

If I put my (or your) WWW/SSL rules into my htaccess in public_html and then open www.mysite.com/forum/forum.php it redirects to https but the url changes to:

https://www.mysite.com/forum/dbseo.php?dbseourl=forum.php

If I move those rules to the htaccess at /forum then entering www.mysite.com/forum/forum.php results in that being the url that loads.

What's happening there?
 
Last edited:
Could you please create and PM me with a temporary FTP and AdminCP account?

For security reasons, we recommend you create a new FTP account only for DBTech support, then disable or delete it after we have both confirmed the issue has been solved and there are no further issues.

The same applies to AdminCP accounts; they should ideally be temporary accounts created for us only. If we have created an account on your site already, you can optionally boost that account to Administrator and then de-admin this account once the issue has been solved.

If you use a .htaccess password protection for your AdminCP directory, it is recommended that you create a new authorised user for DBTech and remove this user once the issue has been solved.

Please test any temporary accounts you create to ensure that the FTP account has access to the forum files, and that the AdminCP account can access the administrative controls for the product we are assisting you with.

Ensuring this is all in order before submitting the information will significantly speed up the process of assisting you. We will alert you via PM if there's any issues with the login information you have provided.

When sending the PM, for your security you should also un-tick the "Save a copy in my Sent Items folder" checkbox. When the access details have been received, we will delete the PM from our inbox. Ensuring you have not kept a copy of the PM reduces the risk of security breaches.

Thank you for helping us debug our products and allowing us to assist you, we appreciate it :D
 
Sorry, I've been very busy with other projects this week, I'll post back when I have more information. Sorry for the delay :(
 
As I mentioned above, setting "Force Forum Directory Index" to "yes" does not strip out forum.php from the url when I click on the forum tab. It makes no difference whether I have that set to "yes" or to "no".
This is because the "Script Name for Forum Home Page" setting in the vBulletin Options. When I corrected this setting, it works as intended.

If I put my (or your) WWW/SSL rules into my htaccess in public_html and then open www.mysite.com/forum/forum.php it redirects to https but the url changes to:

https://www.mysite.com/forum/dbseo.php?dbseourl=forum.php
I applied my WWW/SSL rules and the redirect works as intended without the issue you describe.

I placed the rules in both .htaccess files.
 
Hey,

https: // mysite dot com /forum/ produces a 403 now. Adding forum.php to that redirects to /forum/ which 403s

I've turned the forum off until this works.
 
Last edited:
Someone turned off indexes in the .htaccess file and removed the index.php file that would tell the site to load the forum. I have reverted these changes and the forum now works as intended.
 
Cool. I made the indexes change a few days ago because it was possible at that point for guests to view the contents of the /forum/ directory.

Many thanks for your help. Much obliged!
 
Hello xenigma,

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.

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