hi, I have a website that is working fine with pretty URLs on ... now I'm trying to install the SSL certificate.
The webhost's instructions are to add this to the .htaccess file:
When I add that rule the site's SSL certificate becomes active but the site falls apart because when I view the source I can see that all the URLs are http:// - so no CSS files etc etc
When I uncomment K_SITE_URL in the config file to specify
The same error - "the page isn't redirecting properly" - occurs if I remove the rewrite rule from .htaccess and add the K_SITE_URL in the config file as above.
I'm stumped ... anyone any ideas?
The webhost's instructions are to add this to the .htaccess file:
- Code: Select all
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://yoursite.com/$1 [R=301,L]
When I add that rule the site's SSL certificate becomes active but the site falls apart because when I view the source I can see that all the URLs are http:// - so no CSS files etc etc
When I uncomment K_SITE_URL in the config file to specify
- Code: Select all
define( 'K_SITE_URL', 'https://yoursite.com/' );
The same error - "the page isn't redirecting properly" - occurs if I remove the rewrite rule from .htaccess and add the K_SITE_URL in the config file as above.
I'm stumped ... anyone any ideas?