|
||||||
| Tips, Tricks & Howto's Found a different way of using WHMCS or something that you think would help others? If so, post elsewhere and we'll move it here. (closed to new threads) |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
With the current way WHMCS handles SSL, your clients can log in on pages that are not via SSL. There are also other areas that WHMCS forces to use http instead of https (I believe the announcements and knowledgebase are both without https).
You can use .htaccess to force everything to happen via https, however, file downloads will NOT work if this is the case. When you try to download a file using rewrite rules that forces your URL to be https, IE has an issue with downloading files (in this case, the downloads page). Open 'Configuration' -> 'General Configuration' Set WHMCS System URL to https://www.domain.com/whmcs/ (note the s within https) Set WHMCS SSL System URL to empty The follow code (which you should place inside your .htaccess file), will force all requests to the WHMCS folder to be done via https, unless it is the whmcs/dl.php file. The code after, will force the whmcs/dl.php to redirect from https to http. Code:
RewriteEngine on
Options +FollowSymlinks
#Rewrite the URL for WHMCS to always use https except for the whmcs/dl.php file
RewriteCond %{REQUEST_URI} !^/whmcs/dl.php [NC]
RewriteCond %{REQUEST_URI} ^/whmcs/ [NC]
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ https://www.domain.com/$1 [R=301,L]
#Rewrite the URL for WHMCS dl area to always use http
RewriteCond %{REQUEST_URI} ^/whmcs/dl.php [NC]
RewriteCond %{SERVER_PORT} !^80$
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]
|
|
#2
|
|||
|
|||
|
This worked great!, thanks.
Dave. |
|
#3
|
|||
|
|||
|
Agree with ruskyhost, this worked great. Was getting certificate error before I tried this now no problems. Thanks !!
|
|
#4
|
|||
|
|||
|
This is not working for me. I did the config thing, edited the .htaccess and nothing. Someone help please...
|
|
#5
|
|||
|
|||
|
What do you mean by "not working"
When you bring your car into the mechanic shop, do you simply tell the mechanic that your car "isn't working" ? |
|
#6
|
|||
|
|||
|
http://www.cod4gs.com/my/
Go try to order something with Google Checkout. You will see what I mean. I think the problem is that I have an old certificate on there, but I did not know how to check and take it off. Help.... |
|
#7
|
|||
|
|||
|
Your SSL cert is for dindarahosting.com, not cod4gs... You need to contact your host to fix this.
|
|
#8
|
|||
|
|||
|
they dont know how.
|
|
#9
|
|||
|
|||
|
- Find a new host then
It's like asking your auto mechanic to replace your tire, and the guy looks at you and says "I don't know how to replace a tire" |
|
#10
|
|||
|
|||
|
well im my own host, so how do i do it. i have full access cpanel.
|
|
#11
|
|||
|
|||
|
- Ask in cPanel forums or WHT, not here in WHMCS. It's a hosting problem. Honestly though, if you don't know how to manage your server, you need to hire a server admin.
|
|
#12
|
|||
|
|||
|
Quote:
http//www.cod4gs.com/my/ currently loads: http://nsanewebhosting.org/suspended.page/
__________________
best regards, George Last edited by PPH; 02-12-08 at 08:37 AM. |
|
#13
|
|||
|
|||
|
Maybe when he said he was his own host, he meant he was only a reseller?
__________________
Jason » Hosting4Network.co.uk » Web Hosting from £1.50 per month » Teamspeak Hosting from £0.25 per slot |
|
#14
|
|||
|
|||
|
Quote:
Quote:
__________________
best regards, George |
|
#15
|
|||
|
|||
|
Is this fix still necessary with the release of Version 3.6?
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|