Jump to content

Using SSL causes redirect loop error...


xxDriftingAway

Recommended Posts

Hello,

 

I have contacted my host about this but they have directed me to find a developer to solve this issue. They have verified that everything is 100% working the way it should and that the SSL Certificate is correct and working the way it should.

 

When I try to force people to use clients.hostwish.pw they are given the redirect loop error when I have the following code in my .htaccess file:

# BEGIN HTTPS
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://clients.hostwish.pw/$1 [R,L]
# END HTTPS

 

My host had the following code in there but it seemed to do absolutely nothing:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www.)?mydomain.com$
RewriteCond %{HTTPS} on
RewriteRule ^(.*)$ https://www.mydomain.com/$1 [R=301,L]

 

Not sure if one of us was supposed to change the info above or what... that wasn't clear.

 

Anyway, if you try to visit now, you should get the redirect loop error unless my host was messing with something as I posted that the code they had wasn't working... which was the last thing I stated in the ticket.

 

Anyway, anyone know any other code that is automatically put inside WHMCS that could cause this error?

 

I have my domain name for WHMCS in both the non-ssl and the ssl sections of the general settings.

 

clients.hostwish.pw is a subdomain and my host though they had it when they had this in the root of the cPanel (under hostwish.pw)

RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www.)?clients.hostwish.pw$
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://www.clients.hostwish.pw/$1 [R=301,L]

 

That shows the WordPress index page... which is now currently a Maintenance Mode page unless you are logged in.

 

It is also redirecting to this URL:

https://www.clients.hostwish.pw/clients/index.php

 

My intent was to remove both the www and the /clients/ from the URL to make it a nice an easy clients.hostwish.pw regardless of how you visit it. Hence why I have it a subdomain and not a sub-folder.

 

Ideas?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated