problem with WordPress and https

0

Today I have placed a ssl certificate in my wordpress on the home page all perfect but in all the others I get 404 error when entering https, if I enter with http the pages if they work.

    
asked by elo rebollo 13.07.2017 в 15:30
source

1 answer

0

This happens because you have changed the domain of your page but the entries still point to the old domain (http -> https is considered a domain change).

To solve this problem you have two solutions (among many):

Update the .htaccess file

Go to Settings > Personalization > Permanent links and you give to save (this updates your .htaccess, in theory 'realizes' that the domain has been modified and updates the links.

Update the links of the posts / pages:

Eye, before making the next step it is extremely advisable to make a backup:

You access your database and execute the following query:

UPDATE wp_post
SET guid = REPLACE(guid, 'http://', 'https://')

Keep in mind that 'wp'_post can be' anythingcos'_post, you have to look at the exact name of your database.

    
answered by 13.07.2017 в 16:12