Page 1 of 1

Updating http:// links

Posted: Mon Sep 18, 2023 5:55 pm
by 44MLB
Is there a way to update all the http:// links within WWB to https:// links, globally instead of doing them one by one?

Re: Updating http:// links

Posted: Mon Sep 18, 2023 6:23 pm
by wwonderfull
From tools try using link manager. It is a quick way to edit the links but has to be done one by one. There is no solution for changing http to https in the external links because the links are written with the protocol which is not separate and is part of the link or url. So it has to be done manually I think.

Re: Updating http:// links

Posted: Mon Sep 18, 2023 6:54 pm
by 44MLB
Thanks. That will be a long job.

Re: Updating http:// links

Posted: Tue Sep 19, 2023 10:21 pm
by bkjohns
There is some code to add to the htaccess file that forces http to use https on the server side. A quick workaround while you manually change them in WWB.

Re: Updating http:// links

Posted: Wed Sep 20, 2023 5:22 am
by wwonderfull
If the links are not that much then it wont be a big issue I think. I have hundreds of links and I used a macro to do my repeated job while I was was enjoying the time.

But the method @bkjohnes have suggested is also beneficial too for quick work arounds. But it is a redirect method and the one done from the links is the direct method more clean. Because there are some links which people may want http instead of https in that case redirecting all links might not become the absolute solution so exceptions may need to be added in htaccess and it depends on the circumstances for sure.

If the server is apache then the htaccess code should be something like this. You can contact your webhost for a better config if it has problems. They can provide a better config on this subject as it is their server.

Code: Select all

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Please note that in order for this code to work, you'll need to have the Apache `mod_rewrite` module enabled. Additionally, make sure to place the .htaccess file in the root directory of your website.