加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

php – 在PRESTASHOP中的多线程URL上找不到所有CSS和JS文件

发布时间:2020-12-13 16:54:20 所属栏目:PHP教程 来源:网络整理
导读:我在prestashop网站上启用了多重选项.我还设置了一个名为’abc’的商店,并设置了其网址’ http://example.com/abc‘.我的网站主页运行良好,但当我去我的商店网址’ http://example.com/abc‘它没有正确加载,因为它无法找到头标记中的所有js和css文件,它显示4
我在prestashop网站上启用了多重选项.我还设置了一个名为’abc’的商店,并设置了其网址’ http://example.com/abc‘.我的网站主页运行良好,但当我去我的商店网址’ http://example.com/abc‘它没有正确加载,因为它无法找到头标记中的所有js和css文件,它显示404找不到所有的CSS和js在consol文件中.
那可能是什么问题.感谢您提前帮助.

解决方法

>从config文件夹中打开vim config / settings.inc.php
>找到包含__PS_BASE_URI__设置的行,然后使用基URI更新该值.

If you installed PrestaShop in the document root directory 
(for example,public_html),then the base URI is /. Alternatively,if you installed PrestaShop 
in a subdirectory,the base URI is /path,where path represents the folder name. 
For example,the following line shows 
the base URI set to the document root directory (/):

define('__PS_BASE_URI__','/');

for subdirectory - define('__PS_BASE_URI__','/directoryname');

>保存更改.
>查看此网址以获取更多信息:http://www.a2hosting.com/kb/installable-applications/optimization-and-configuration/prestashop2/changing-the-prestashop-url-settings

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读