我的.htaccess文件有问题。PHP .htaccess RewriteRule允许多种组合
在我的.htaccess规则,如果我把这个:
RewriteRule ^post/([^/]*)$ /the_post.php?id=$1 [L]
我就能够浏览的网址是这样的:
http://www.example.com/post/12
但如果我尝试:
http://www.example.com/post/12/
或
http://www.example.com/post/12/something-else-here
该页面未建立。
什么是正确的方式来允许任何可能的组合的网址?
- http://www.example.com/post/12
- http://www.example.com/post/12/
- http://www.example.com/post/12/something-else-这里
谢谢你的时间!
它works.Thanks! – Nano