【发布时间】:2014-07-20 03:05:14
【问题描述】:
http://www.example.com/class/part-time/ 是实际网址。
我想为内部重定向到 url 编写 htaccess 规则:
http://www.example.com/index.php?type=class&slug=part-time
我正在使用以下规则-
RewriteRule ^class/([\w-]*)/$ index.php?slug=$1&type=class
但它不起作用。
【问题讨论】:
-
你的
.htaccess文件代码的其余部分是什么?
标签: php apache .htaccess codeigniter