【发布时间】:2015-12-08 18:11:43
【问题描述】:
我正在使用以下 sn-p 删除我的页面的 php 扩展名:
RewriteEngine on
rewritecond %{http_host} ^example.com [nc]
rewriterule ^(.*)$ http://www.example.com/$1 [L,R=301]
现在我想做一个旧页面到一个新页面。像http://www.example.com/oldpage 这样的东西应该永久(301)重定向到http://www.example.com/newpage
【问题讨论】:
标签: php .htaccess mod-rewrite redirect