Updating http:// links

Issues related to hyperlinks and web site navigation.
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/links.html
Post Reply
44MLB
 
 
Posts: 144
Joined: Sun May 27, 2018 11:55 am

Updating http:// links

Post 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?
wwonderfull
 
 
Posts: 1439
Joined: Fri Aug 21, 2020 8:27 am
Contact:

Re: Updating http:// links

Post 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.
44MLB
 
 
Posts: 144
Joined: Sun May 27, 2018 11:55 am

Re: Updating http:// links

Post by 44MLB »

Thanks. That will be a long job.
bkjohns
 
 
Posts: 296
Joined: Wed Nov 14, 2018 5:54 pm

Re: Updating http:// links

Post 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.
wwonderfull
 
 
Posts: 1439
Joined: Fri Aug 21, 2020 8:27 am
Contact:

Re: Updating http:// links

Post 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.
Post Reply