Question Problem with too many redirects/missing root page after server switch

Status
Not open for further replies.

fmagle

Customer
After moving to a new server and getting everything up and running, there is one thing that doesn't work; unless I'm already logged in, I can't visit the homepage (root) of talkclassical.com If I go to forum.php or any page it works, but the redirect from forum.php to root (index.php) has somehow stopped working. Also, If I try to visit with https I get an error that there are too many redirects.

I have not changed the htacces, which is like this:

RewriteEngine On

# Some servers require the Rewritebase directive to be
# enabled (remove '#' at the beginning to activate)
# Please note: when enabled, you must include the path
# to your root vB folder (i.e. RewriteBase /forums/)
# RewriteBase /

# If you are having problem with "None Could Be Negotiated" errors in Apache, uncomment this to turn off MultiViews
# Options -MultiViews

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

RewriteCond %{REQUEST_URI} !(admincp/|dbseocp/|modcp/|cron|mobiquo|forumrunner|api\.php|reviewpost/|classifieds/|photopost/)
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)/
RewriteRule ^(.+)$ dbseo.php [L,QSA]

Hope to find a solution, thanks in advance for any help.
 
Your .htaccess rules are out of date.

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

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

Try these instead :)
 
Thank you, they seem to work fine. And now I can use https without the redirect problem. Without https it still cannot find the root page (just gets an error). However, as I want to switch to https anyhow, I'd like to simply redirect all http pages to https, but when I try to add this code to the htaccess I get "too many redirects" errors again...

RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
 
Please make sure the DBSEO rewrite rules are the last in the list, that ruleset should be added above DBSEO's rules. We use the exact same code here @ DBTech without issue :)
 
It's so strange, because I did that. And even weirder is that is seems to be working fine on Magle International Music Forums, which has the same software and setup, except that the forum is placed in its own subfolder expect in the domain root... strange...
 
Digging deeper, and doing a lot of searching, it seems that the problem may be that the server is using NGINX...
 
Anyhow, since this problem now only occures when using http, I have redirected all http traffic to https, on the domain-level, bypassing the htaccess. It seems to work now :)
 
Hello fmagle,

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,169
Customer rating
5.00 star(s) 1 ratings
Back
Top