【发布时间】:2012-05-04 08:11:30
【问题描述】:
在 apache .htaccess 文件中,我写过,
RewriteRule ^animals$ index.php?type=animals
它将http://localhost/animals重定向到http://localhost/index.php?type=animals
当 url 键入为 http://localhost/animals/ 时,就会发生错误,
找不到文件。
将http://localhost/animals 和http://localhost/animals/ 重定向到http://localhost/index.php?type=animals 的正确语法是什么
【问题讨论】:
标签: php apache mod-rewrite url-rewriting