当我进入
http://localhost/web/post/136
它将转到
http://localhost/web/file/home/page.php?post=136
这是我所做的:
RewriteEngine on
RewriteRule ^/post/([0-9]+)$ file/home/page.php?post=$1 [last]
我需要改变什么?
根据您的
评论,要修复重写网址上的js,css等相关链接,可以在文档头部添加以下基标签:
<base href="/">