我想改变" announcements.php" to" blog.php"在网址中。个别文章由id = x标识,例如" annoucements.php?id = 1",我将需要它来说" blog.php?id = 1"
我试过了:
RewriteRule ^announcements.php ./blog.php
答案 0 :(得分:0)
尝试:
RewriteEngine on
RewriteRule ^announcements\.php /blog.php [NC,L]
如果更改网址中的文件名,则执行重定向,而不是重写。