使用magento中的htaccess prolem删除index.php

时间:2017-02-13 19:41:36

标签: php apache .htaccess magento

我在本地wamp服务器上尝试了各种选项,以便magento删除index.php usng .htaccess 根据此stackoverflow链接 - link

我尝试了各种替代方案,比如

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
## RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
## RewriteRule . /index.php [L]
</IfModule>

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
## RewriteRule ^(.*)$ index.php/$1 [L]
RewriteRule . /index.php [L]
</IfModule>
  • 我已设置要在前端使用的安全网址。
  • 同时设置使用网络
  • 服务器重写为yes。清除所有缓存。

现在,当我访问某个类别时,显示的网址没有index.php。但是后来我没有显示类别页面,而是获得了wamp服务器配置页面。

  

注意:如果我在域和类别之间插入index.php   页面正确打开

0 个答案:

没有答案