Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/6.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
.htaccess htaccess从存储URL中删除index.php_.htaccess_Magento - Fatal编程技术网

.htaccess htaccess从存储URL中删除index.php

.htaccess htaccess从存储URL中删除index.php,.htaccess,magento,.htaccess,Magento,我不希望我的存储上的URL包含index.php。我所有的产品页面都可以通过添加index.php来访问,如果不添加index.php,这是不好的,我想从URL中去掉index.php 例如,这两个URL显示相同的内容,但我只希望用户被定向到第二个URL: & 同样,对于网站顶层的内容: & Magento根据配置设置将系统端点(index.php)添加到URL路径。在管理中,导航到系统>配置。在Web部分,打开搜索引擎优化组并将Use Web Server Rewrites设置为“Yes”。

我不希望我的存储上的URL包含index.php。我所有的产品页面都可以通过添加index.php来访问,如果不添加index.php,这是不好的,我想从URL中去掉index.php

例如,这两个URL显示相同的内容,但我只希望用户被定向到第二个URL:
&

同样,对于网站顶层的内容:
&

Magento根据配置设置将系统端点(index.php)添加到URL路径。在管理中,导航到系统>配置。在Web部分,打开搜索引擎优化组并将Use Web Server Rewrites设置为“Yes”。您需要刷新配置缓存,然后重新索引URL重写。

对“此问题未显示任何研究成果”投了否决票。我们何时成为Magento帮助台?请确保Magento提供的.htaccess文件也位于Magento根文件夹中。它包含url重写代码的其余部分。