开发者

Converting HTML to Wordpress > Keep .htm .html _ in URLs

thank you very much in ad开发者_开发知识库vance for helping.

I am converting a static HTML website to Wordpress.

The HTML site is doing very well in Google and it has been agreed that we need to keep existing URLs in the Wordpress site. We do not want to change names and have permanent redirects.

The existing site has got most pages with .htm and some pages with .html, but WP does not support this by default. We found a plug-in to add .htm or .html but it applies either one extension or the other to the whole site so it will not suit us.

Likewise, we have _ (underscore) in URLs which is also not supported by WP.

It has been suggested to us to use .htaccess rules to solve both problems, but we do not know where to start.

Can you kindly give us some help. Thanks in advance for helping a brother in need.


Use the Advanced Permalinks plugin. Then just add the .htm or .html to the permalink when writing/editing the post.


for underscoring you should take a look at this How do I use underscore in a wordpress permalink

but for .htm and .html you can acheive that with out using a plugin, just by going to the permalink settings. but you are going to have to stick with either .htm or .html (choose one)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜