我正在尝试使用mod_rewrite apache模块重写URL。 我想如下使用它:在.htaccess中使用mod_rewrite进行URL重写
Options +FollowSymlinks
RewriteEngine on
RewriteBase/
RewriteRule ^wants/testing.htm wants.php?wantid=$1 [L]
我创建从哪里访问文件目录中的.htaccess文件。
mod_rewrite也被启用。 完成所有这些后,我仍然无法使其工作。
有人可以帮助我吗?请让我知道,如果我失去了一些东西提前
感谢, Gnanesh
什么不适合你?您如何期望URL被重写以及您想从何处提取wantid参数? – duckyflip 2009-05-20 08:05:34
该URL显示mydomain.com/wants.php?wantid=123。 我需要使它看起来像mydomain.com/wants/123 – gnanesh 2009-05-20 08:23:10