• banther

    (@banther)


    Hello

    I recently changed my WordPress theme. I set up a staging site on my hosting to make the change using softaculous and once I was ready, I pushed to live.

    However, after doing the push to live, all my internal links have changed from https to http. I don’t know why or how this happened.

    Because of this, my site now contains hundreds of redirects.

    is there a way, or a plugin, that can help me change all my internal links back to https without having to manually go through every single page and post on my site? Manually changing every single link will take forever.

    Thanks in advance

Viewing 3 replies - 1 through 3 (of 3 total)
  • aps12345

    (@aps12345)

    Install and activate the search and replace plugin. Enter the HTTP version of your site’s URL in the “Search for” field and the HTTPS version in the “Replace with” field. Do take the backup of your database before attempting.
    Also you can use force ssl load.

    pichichi

    (@pichichi)

    Hello,

    Admin Menu>Settings>General Settings> “WordPress Address (URL)” and “Site Address (URL)”

    Ensure both of these start with https, if not, update them. This is usually all that is needed.

    If that doesn’t fix things, you have a few options. You can either:
    1) Force https by editing your .htaccess file
    2) Use a plugin to force https
    3) Back up your database, then perform a search and replace in the database or by using a plugin like Better Search Replace. Make sure you use as much of the URL as possible when searching and replacing so you are not literally just replacing http everywhere including non website urls.

    There are lots of tutorials online for the above options that explain things better than I can I a post!

    Thread Starter banther

    (@banther)

    Many thanks for your replies. I tried the Search and Replace plugin and it found thousands of URL’s with the http instead of https. All of my internal links, images etc. were http and I was able to change them all to https quickly.

    Just curious though, any idea how this happened? My staging site was hosted on the same server as my live site. Softaculous just creates a clone of my site in a new folder within the public_html folder, and once pushed to live, it replaces everything in the database with the new theme files.

    I didn’t change any links whilst testing the new theme on the staging site. I’m puzzled.

    Thanks again

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

The topic ‘Change internal links, http to https’ is closed to new replies.