Hello, good morning, I am placing SSL on a website, but when I add the .htacces file with the corresponding code, it applies SSL, but the website is distorted. Locate the index.php file to replace http with https but when opening index.php I found that it has the following routes which I don't understand.
index.php code
<?php
/**
* User Dashboard Administration Screen
*
* @package WordPress
* @subpackage Administration
* @since 3.1.0
*/
/** Load WordPress Administration Bootstrap */
require_once( dirname( __FILE__ ) . '/admin.php' );
require( ABSPATH . 'wp-admin/index.php' );
.htaccess
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{HTTP_HOST} ^(www\.)?raben\.com.mx
RewriteRule ^(.*)$ https://www.raben.com.mx/$1 [R,L]
SSL error and garbled page.
I hope you can support me.
If your page is messed up and displayed differently than it was after making the switch to
SSL
, it is because you must now use pages and resources that must be encrypted, they must all use the protocolhttps://
, otherwise there will be things like .css files , .js or images which will not be able to load and that will influence the operation or visualization of your page.In fact you can see the message that indicates:
( In English:
)
Solution:
Checking your page, you can indeed see that some .css are being blocked as they are using
http://
and nothttps://
:you should check the files that refer to these resources and that are in the same domain, change the protocol to
https://
.The file you need to edit is
style.css
: