如何将 301 重定向动态 url 转换为静态 url?
在这种情况下
www.example.com/book.php?book=title
进入
www.example.com/book/title
请求动态 URL 时,它应该转换为静态 URL。应转换动态 URL,而应在地址栏中显示静态 URL。
我得到了这个代码:
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^user/([^-]+)/?$ /user.php?id=$1 [NC,L]
有人可以给我动态 url tio 静态 url 的 301 重定向吗?提前致谢。