Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 为prestashop创建启动页_Php_.htaccess_Prestashop - Fatal编程技术网

Php 为prestashop创建启动页

Php 为prestashop创建启动页,php,.htaccess,prestashop,Php,.htaccess,Prestashop,我正在尝试在加载主商店页面之前加载带有徽标的启动页面。我将我的页面命名为index.html,并在.htaccess中更改了DirectoryIndex,以便在index.php之前加载index.html 问题是卡模块不再工作,因为它请求重定向到主存储(index.php)。在我的例子中,它被修改为index.html,所以它给了我一个空白页面。如何设置启动页而不引起此问题 对于实现prestashop v1.6的介绍页面,我也有同样的问题 解决办法是: 在.htaccess文件中,只需添加以

我正在尝试在加载主商店页面之前加载带有徽标的启动页面。我将我的页面命名为
index.html
,并在
.htaccess
中更改了
DirectoryIndex
,以便在
index.php
之前加载
index.html


问题是卡模块不再工作,因为它请求重定向到主存储(
index.php
)。在我的例子中,它被修改为
index.html
,所以它给了我一个空白页面。如何设置启动页而不引起此问题

对于实现prestashop v1.6的介绍页面,我也有同样的问题 解决办法是: 在.htaccess文件中,只需添加以下代码:

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^.*$ index.html
</IfModule>
因此:

-每当显示第一个index.html(简介页面)时

-然后用户可以通过任何链接访问prestashop站点的其他部分

-然后,无论何时单击主页,用户都会返回到简介页面(如果您想返回)
prestashop主页不在介绍页中,请跟随)

您的
.htaccess
文件中有什么?我添加了这一行
DirectoryIndex.html index.php
DirectoryIndex只有在您请求相关目录的根目录时才会按顺序检查。不幸的是,如果没有更多的信息,我将无法回答你的问题。我唯一能建议的就是你。
RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L]