paperweight Posted August 11, 2012 Share Posted August 11, 2012 When a logged-in user clicks to download a link, the link looks like this: https://website.com/whmcs/dl.php?type=d&id=20 But after the click, the browser says there is a redirect loop and the process can not be completed. This is the first time I activated downloads on my site, soi I never witnessed this problem before. Any ideas what this could be causing the problem? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted August 14, 2012 WHMCS Support Manager Share Posted August 14, 2012 Hi, What are your Setup > General Settings > WHMCS System URL and WHMCS SSL System URL settings? This behaviour could suggest they're configured incorrectly. The first should begin http:// and the second should be blank or being http:// if you have your own SSL certificate installed. 0 Quote Link to comment Share on other sites More sharing options...
paperweight Posted August 14, 2012 Author Share Posted August 14, 2012 Hi John, many thanks for your help~ WHMCS System URL: https:///whmcs.mysite.com WHMCS SSL System URL: [blank] Above is what is currently in the fields. I do have SSL installed. For the "WHMCS SSL System URL" I tried adding https:///whmcs.mysite.com but when I click "Save Changes" the resulting page makes that info disappear, so it is blank again like above. If I change the "WHMCS SSL System URL" to http:///whmcs.mysite.com (I remove the 's' from http) then after I "save Changes" it remains there as http:///whmcs.mysite.com but the doanloads still have the redirect loop, so it appears to not help. Any other thoughts on a fix for this malady? 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted August 15, 2012 Share Posted August 15, 2012 Try it with 2 slashes instead of 3 0 Quote Link to comment Share on other sites More sharing options...
Bubka3 Posted August 15, 2012 Share Posted August 15, 2012 WHMCS System URL: http://whmcs.mysite.com WHMCS SSL System URL: https://whmcs.mysite.com You should never put the same URL into both fields. This message can also show as: "The page isn't redirecting properly" 0 Quote Link to comment Share on other sites More sharing options...
paperweight Posted August 15, 2012 Author Share Posted August 15, 2012 hehe, thanks. the 3 slashes was a typo I made in this forum~ Doesn't 3 slashes get me to the webpage faster than 2 Ok, but I do have SSL installed and I want to force users to visit that, so why would I not have the https in both fields? I mean, for the "WHMCS System URL" I want users to visit the https version of the entire site so I am confused about what goes where. I realize it probably appears simple but it is still confusing~~ I am checking htaccess as well since I recently added a 404 Error addon that maybe is impacting this. I will work on it today. 0 Quote Link to comment Share on other sites More sharing options...
Bubka3 Posted August 15, 2012 Share Posted August 15, 2012 You should never put the same URL into both fields. This will show message: "The page isn't redirecting properly". You don't want to force users to visit that. WHMCS will switch between HTTP and HTTPS. 0 Quote Link to comment Share on other sites More sharing options...
paperweight Posted August 15, 2012 Author Share Posted August 15, 2012 Ok understand I appreciate all the tips. htaccess appears to be the culprit and it is being fixed now. 0 Quote Link to comment Share on other sites More sharing options...
paperweight Posted August 15, 2012 Author Share Posted August 15, 2012 (edited) Ok, good news and bad news: Good news is I fixed the problem. It was a combination of the incorrect URLs in the System URLs and the htaccess errors. MY downloads now work. Bad news is that I now do not have SSL forced on the installation. I previously had forced https on the entire installation using this in the htacess: # This rewrites URLs to force https on all requests to whmcsRewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} RewriteCond %{HTTPS} off RewriteCond %{REQUEST_URI} !^/dl.php [NC] RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} RewriteCond %{HTTPS} on RewriteCond %{REQUEST_URI} ^/dl.php [NC] RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ $1 [R,L] However, now I removed that. I need to force SSL on the entire installation on all the pages because of the requirements of my users. I know this is taxing on the server, but it's important for my clients. Any idea how I can now force https throughout? Here are also my current URL settings: WHMCS System URL: http://whmcs.mysite.com WHMCS SSL System URL: https://whmcs.mysite.com I appreciate all your great feedback to help me. Edited August 15, 2012 by paperweight adding the URL settings too 0 Quote Link to comment Share on other sites More sharing options...
Bubka3 Posted August 16, 2012 Share Posted August 16, 2012 You could do this: WHMCS System URL: https://whmcs.mysite.com WHMCS SSL System URL: [blank] 0 Quote Link to comment Share on other sites More sharing options...
paperweight Posted August 16, 2012 Author Share Posted August 16, 2012 Thanks @Bubka3, but that is what I originally had. It does work, but then other things break. I think I need to hire someone to take a look at this. Will check into that and let you know how I fare~ 0 Quote Link to comment Share on other sites More sharing options...
paperweight Posted August 16, 2012 Author Share Posted August 16, 2012 hehe, that was my typo on this forum, but it is 2 slashes in WHMCS~ 0 Quote Link to comment Share on other sites More sharing options...
Bubka3 Posted August 16, 2012 Share Posted August 16, 2012 Yes, but you also had it in SSL field, not just the non-SSL field, and you also had a .htaccess. If you put the SSL url in the non-SSL url field, it should work fine. No need to add it to SSL field and cause a double redirect. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.