开发者

Drupal live and staging image path

开发者 https://www.devze.com 2023-04-09 13:49 出处:网络
I have 2 version of my drupal site that are the live and staging. My live site is http://www.mysite.com/ and the staging is http://mystaging.com/site/www.mysite.com/.

I have 2 version of my drupal site that are the live and staging. My live site is http://www.mysite.com/ and the staging is http://mystaging.com/site/www.mysite.com/.

In live site, the path of images is displaying but on my staging the images are not displaying. It’s because of the 2 subdirectory (site/www.mysite.com/) on my staging.

I would like to ask about solutions how I can display all images in my stagi开发者_高级运维ng without editing the database or some .tpl.php file just to add “site/www.mysite.com/”. Is it possible to fix via .htaccess?

I hope someone can help me or enlighten me.

Thank you.


You can change the $base_url variable in sites/default/files/settings.php for your local copy, that should let you set an absolute base path for your site

0

精彩评论

暂无评论...
验证码 换一张
取 消