thinkoholic
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: permalink: /?tegory%/%postname% no imagesForum: Fixing WordPress
In reply to: Trying to page name in Permalinks links, but images won’t load.you can also have it done automatically:
https://www.ads-software.com/support/topic/122553?replies=2#post-666190Forum: Fixing WordPress
In reply to: Permalinks “on” but images “gone”i had the same problem, using images with relative URIs.
the first solution (which i found somewhere on here):
use absolute URIs – like <img src=”/folder/file.jpg”> instead of <img src=”folder/file.jpg”> (note the slash after src=”!)the second solution would be to add the following lines to wordpress/wp-includes/formatting.php (in line 28):
$curl = str_replace(‘src=”‘, ‘src=”/’, $curl);
$curl = str_replace(‘src=”/https://’, ‘src=”https://’, $curl);
`using the second solution, you can keep linking as before, and the changes will be made automatically (and retroactively). external links are “cleaned” of the preceding “root-slash”.
Forum: Fixing WordPress
In reply to: Permalinks ruining images in sidebardon’t know if this is still unresolved… you need to use absolute URIs – <img src=”/folder/image.jpg”> instead of <img src=”folder/image.jpg”> (note the slash after src=”!)
Forum: Fixing WordPress
In reply to: RewriteCond Mod_rewrite.c Questioni had the same problem, using images with relative URIs.
the first solution (which i found somewhere on here):
use absolute URIs – like <img src=”/folder/file.jpg”> instead of <img src=”folder/file.jpg”> (note the slash after src=”!)the second solution would be to add the following lines to wordpress/wp-includes/formatting.php (in line 28):
$curl = str_replace('href="', 'href="/', $curl); $curl = str_replace('href="/https://', 'href="https://', $curl);
for images, it would be
$curl = str_replace('src="', 'src="/', $curl); $curl = str_replace('src="/https://', 'src="https://', $curl);
using the second solution, you can keep linking as before, and the changes will be made automatically (and retroactively). external links are “cleaned” of the preceding “root-slash”.