Relative Links on images

My site is Dynatem.com I am using the latest version of Pro.

My question is this, I am having some issues with an SSL certificate and it looks like it is because of images with a hardcoded path.

This is the path of the image, https://dynatem.com/wp-content/uploads/2019/09/social-twit-02.png

What I want the path to be is /wp-content/uploads/2019/09/social-twit-02.png

However, I am using an image element in some cases and a social element in some cases. How can edit the path to the way I want when the image is in an element?

Hi Kenton,

Thanks for reaching out.

It’s Wordpress standard to have an absolute URL instead of relative. The relative URLs causes more issues, though, that is still achievable by using this plugin https://wordpress.org/plugins/relative-url/. It’s not our plugin, so please use if with caution. And we can’t further provide further support to any issues caused by modifying your URLs.

And if you plan sticking with absolute URLs and wishes to fix the HTTPS issue, then I recommend installing Better Search Replace plugin and replace http://dynatem.com/wp-content/ with https://dynatem.com/wp-content/. You only need to do this once every time you change your site’s URL, like migration, changing protocols and so on. Hence, it’s more preferred than using relative URLs, realtive URLs are slow too since it still needs to resolve to its absolute URL counter part every time a request is made.

Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.