您好我的网站网址就像
https://example.com/articleDesc.php?post=paleo-diet-what-is-it-and-why-is-it-so-popular
我想将此网址修改为
https://example.com/paleo-diet-what-is-it-and-why-is-it-so-popular
但我想使用此查询字符串值来获取respnse
提前致谢
答案 0 :(得分:1)
只需使用:
RewriteEngine On
RewriteRule ^([^/]*)$ /articleDesc.php?post=$1 [L]