DRUPAL broken images after enabling url rewriting

427 views Asked by At

I turned on URL rewriting on Drupal, and some URL image are broken.

For example :

local/tw/sites/all/themes/tw/images/1-p1.jpg become local/tw/content/sites/all/themes/tw/images/1-p1.jpg

or

local/tw/sites/all/themes/tw/images/2-p1.jpg become local/tw/node/sites/all/themes/tw/images/2-p1.jpg

Any ideas?

1

There are 1 answers

0
chirale On

If you used relative path, and you're talking about contents within nodes, it's perfectly normal, since "node/" is interpreted like a directory.

You could fix this problem adding a "/" before image src, or using module like Path Filter that provides a simple file:relative/path/to/file syntax.