Updating http:// links
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/links.html
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/links.html
Updating http:// links
Is there a way to update all the http:// links within WWB to https:// links, globally instead of doing them one by one?
-
-
- Posts: 1432
- Joined: Fri Aug 21, 2020 8:27 am
- Contact:
Re: Updating http:// links
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
Thanks. That will be a long job.
Re: Updating http:// links
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.
-
-
- Posts: 1432
- Joined: Fri Aug 21, 2020 8:27 am
- Contact:
Re: Updating http:// links
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.
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.
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]