简体   繁体   English

如何在wordpress中添加所有页面/帖子URL的.html extn结尾

[英]how to add .html extn end of all page/post url in wordpress

We developed a html static site to WordPress (CMS) blog site ... 我们开发了一个html静态站点到WordPress(CMS)博客站点...

For SEO, Static url for best SE cache/crawl... 对于SEO,静态URL可实现最佳SE缓存/抓取...
Best way to On crawling and indexing sites for the Google index.. 在Google索引上对网站进行爬网和编制索引的最佳方法。

Dynamic URLs vs. static URLs details ref doordie.co.in/seo/160216 动态URL与静态URL的详细信息,请参考doordie.co.in/seo/160216

So, how add .html extension end of all page/post url in wordpress without plugins 因此,如何在没有插件的情况下在wordpress中添加所有页面/帖子网址的 .html扩展名末尾

For eg. 例如。 chennaitechnologies.com/google-adwords/

To: chennaitechnologies.com/google-adwords.html 收件人: chennaitechnologies.com/google-adwords.html

Any code or .htaccess possible? 任何代码或.htaccess可能吗?

For posts 对于帖子

Try the following as perma-link structure: 尝试以下操作作为永久链接结构:

%category%/%postname%.html

For pages 对于页面

There is a free plugin for that called .html on PAGES plugin PAGES插件上有一个名为.html的免费插件。

You can do this by editing permalinks of your WordPress Blog/site. 您可以通过编辑WordPress博客/站点的永久链接来做到这一点。 In wp-admin, look for settings and click in permalinks. 在wp-admin中,查找设置,然后单击永久链接。 Select the custom option and put the .html at the end. 选择自定义选项,然后将.html放在末尾。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM