编程语言
首页 > 编程语言> > php – 在PRESTASHOP中的多线程URL上找不到所有CSS和JS文件

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

作者:互联网

我在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

标签:php,friendly-url,prestashop-1-6
来源: https://codeday.me/bug/20190628/1320227.html