我将一个旧的静态HTML站点移植到wordpress。所有帖子和页面现在都有永久链接/%postname%/
我需要一个包含.html扩展名的帖子URL(它需要与包含.html的原始规范URL匹配)
示例:
www.domain.com/thispageonly/
-至-
www.domain.com/thispageonly.html
这是一个单一的帖子所需要的,只是没有更多。
谢谢!
最好使用301重定向(SEO原因):
RewriteEngine on
Redirect 301 /thispageonly /thispageonly.html