标签: php apache .htaccess mod-rewrite
我的原始链接:http://sitename.com/ads.php?i=2及其重写类型如下:http://sitename.com/ads/cars/alfa-romeo-spider-in-good-condition.html 在.htaccess文件中,我这样编码:RewriteRule ^ads/([^/]*)/([^/]*).html$ ads.php?i=$1 [L]但页面没有显示。如何在.htaccess文件中编写规则。
http://sitename.com/ads.php?i=2
http://sitename.com/ads/cars/alfa-romeo-spider-in-good-condition.html
RewriteRule ^ads/([^/]*)/([^/]*).html$ ads.php?i=$1 [L]