Images in sub-pages fail to load
Question
I added a .htaccess file to a wordpress website I'm working on, to show nice urls instead of page ids.
The content of the .htaccess is this:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
It's working fine, but in every subpage I have it doesn't show images. Using Firebug I see that the path to the image is correct (for example: for the logo is the same path as in other pages), but it gives the error "Failed to load the given URL".
The src for the images is this: wp-content/themes/.../file.jpg. I noticed that putting an absolute url, such as http://mysite.com/wp-content/.../file.jpg does solve the problem.
Shall I just use absolute URLs or is there something I can do in the htaccess?
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with wordpress.stackexchange