【发布时间】:2014-06-22 15:00:30
【问题描述】:
我有一个包含多个 php 文件的自定义文件夹。我想通过从 URL 中删除 .php 来创建一个友好的 URL。所以我在所有 .php 文件所在的自定义文件夹中创建了 .htaccess 文件,并编写了以下代码,但它不起作用。
我的网址是:magento/cl/unilever.php
预期网址:magento/cl/unilever
.htaccess 包含:
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^unilever $ unilver.php
【问题讨论】:
标签: .htaccess mod-rewrite