我的网址如下所示:
http://127.0.0.1/website/comments.php?topic_id=16
我想让它看起来像这样:
http://127.0.0.1/website/comments/my-news-article/16.php
我已经应用了这个
RewriteEngine on
RewriteRule ^comments/([a-zA-Z0-9_-]+)/([0-9]+)\.php$ comments.php?id=$2
我也打开Rewrite_module
了Apache。
但它不起作用。