drupal - Links to files are not configured properly -
when developing website on computer fine because drupal installed in virtual host's root directory. when moved website server 1 of www's subdirectory, links files broken. urls "/sites/default/files/..." , point www root. i've added rewritebase /my_dir
.htaccess file it's still not working.
update: mistake obvious: urls absolute, "/" in beginning of it. guys anyway.
update 1: , yet it's not obvious. use pathauto module , when page accessed through "/content/page-title", when use relative path files doesn't work neither.
i hope might make right changing path /sites/default/files/
file_directory_path()
.some of these below functions may prove useful
base_url
-returns base url of drupal installation
file_directory_path()
- returns string containing path drupal's 'files' directory.
path_to_theme()
- returns path current themed element.
Comments
Post a Comment