• Resolved edow

    (@edow)


    Hi,

    I would like to get a SSL certificate for my WordPress site. Is it safe to switch from http to https? My host says it’s an automatic install, but shouldn’t I change all the URLs?

    How about all the plugins and the WordPress files? Will they still work? Should I change all the URLs in my theme files? That should be easy, but I’m more concerned about the plugins and the WordPress files.

    I’m worried that if I get the SSL certificate my site stops working properly. Maybe someone has some experience with this.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Here’s several questions:

    1. Do you want the entire site under https?
    2. Are your URLS absolute or relative URLS?
    3. Do you want the login page to be under https?
    Thread Starter edow

    (@edow)

    Hi, thank you for your reply.

    Yes, I was thinking about doing it for the entire website. In my theme I have hard coded URLs and some WordPress permalink PHP codes for example, so I have both I guess. But I’m not sure about the WordPress core and the plugins. If it’s not recommended then I don’t need it for the login page, but otherwise I do.

    Hard coded URLS in your theme can cause https not to work, especially on the pages you want to be served under https. For https to work effectively, it is not just links that need to be relative, but images also need to have relative urls for the src attribute.

    Now, for pages to be served under https, there’s a nifty plugin to aid you with this: WordPress HTTPS.

    Now, if you want the login page to be served under https, it’ll require you to add the line of code below to the wp-config.php file.

    define( 'FORCE_SSL_LOGIN', true );

    Thread Starter edow

    (@edow)

    Thank you for your reply. I changed the http URLs to https and I used your code for wp-config.php and everything is working already!

    That’s great!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Is it safe to switch to https?’ is closed to new replies.