Absolute or Relative Paths
-
When I add an image WP creates an absolute link like:
https://www.mysite.com/wp-content/blah/blah/mypicture.jpg
. If a user does a search formysite
every page with an image will be found. A similar problem occurs with links to another page. Since my site name (binnenstadduurzaam
) comprises the (Dutch) words for “city-center” and “sustainable”, such a search is quite likely.My workaround is to manually edit the links to be relative thus:
../wp-content/blah/blah/mypicture.jpg
. This is time-consuming and error-prone, so I am looking for a better solution.I found several plugins which offer conversion from absolute to relative paths, but all but one are several years old and “untested for your version”. The plugin “Make Paths Relative” seems to be up-to-date but does not work on my test site (preview pictures in the Media Library are not displayed). The test site is (something like)
https://private.mysite.com/wp-test/
; possibly the use of a different subdomain causes problems. Obviously I daren’t test it on my live sitehttps://www.mysite.com
.Is there an up-to-date plugin which does what I want? or does the lack of plugins indicate that there is a WP option which I haven’t found? Or is there a better workaround? The problem exists with themes 2020 and Neve.
- The topic ‘Absolute or Relative Paths’ is closed to new replies.