我在本地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>
现在,当我访问某个类别时,显示的网址没有index.php。但是后来我没有显示类别页面,而是获得了wamp服务器配置页面。
注意:如果我在域和类别之间插入
index.php
页面正确打开