SSL Rewrite - won't Resolve domain
Permalink 1 user found helpful
I've a few different sites 5.6 and 5.7+. I've recently been switching them all to SSL and adding to the .htaccess
RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} !=on
RewriteCond %{SERVER_PORT} ^80
RewriteRule (.*)https://%{HTTP_HOST}%{REQUEST_URI}... [R=301,L]
RewriteRule ^index\.php$ - [L]
and then setting the base URL to https:// in the config.
First off - all of these sites are on the same VPS server - 2nd all the 5.6 sites are at the same version.
For my 3 problem sites - when I just add the rewrite I get a The page isn’t redirecting properly
When I add the define('BASE_URL', 'https://domain.org');
Then I get a page isn't redirecting properly.
In other words I can't get the site to seemingly have the base at https://
Suggestions?
RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} !=on
RewriteCond %{SERVER_PORT} ^80
RewriteRule (.*)https://%{HTTP_HOST}%{REQUEST_URI}... [R=301,L]
RewriteRule ^index\.php$ - [L]
and then setting the base URL to https:// in the config.
First off - all of these sites are on the same VPS server - 2nd all the 5.6 sites are at the same version.
For my 3 problem sites - when I just add the rewrite I get a The page isn’t redirecting properly
When I add the define('BASE_URL', 'https://domain.org');
Then I get a page isn't redirecting properly.
In other words I can't get the site to seemingly have the base at https://
Suggestions?
Made some changes for security *reasons (see above ↑)
Thanks for the suggestion. Tried that and same deal.
In url loading I see a waiting for TLC handshake flickering in and out before it times out.
Little bit more.
I've tried removing the .htaccess entirely
Then In the config.sys removing the base URL line when it is gone if I type in the addresshttp://address - it resolves and switches it tohttp://address.
If in the config.sys I changed the base URL tohttp://address (site is iowaascd.org) then it won't resolve at all. (same as before)
In url loading I see a waiting for TLC handshake flickering in and out before it times out.
Little bit more.
I've tried removing the .htaccess entirely
Then In the config.sys removing the base URL line when it is gone if I type in the addresshttp://address - it resolves and switches it tohttp://address.
If in the config.sys I changed the base URL tohttp://address (site is iowaascd.org) then it won't resolve at all. (same as before)
Your .htaccess rules does not switch to port: 443