admin管理员组文章数量:1125922
What is the established way of creating a static mirror of a local WordPress blog installation? (I'm managing it via wp-cli)
I've discovered / but should wget --mirror
also work and be enough to create a static html mirror of a simple WordPress blog installation along with all assets?
Is there a way to ask WordPress to bundle all plugins' assets (and maybe embed them into the page HTMLs)?
I'm looking into this as exploring transitioning of an existing WordPress blog to Static Site Generation. As an intermediate step, I'm looking to make WordPress itself into a SSG, basically populating the WordPress database, pages and config from some backup files and then render all the pages during the generation time. This would allow us to preserve the current website theme / design, while deciding if we move on to some other simpler SSG.
Thank you!
UPD: I've tried using sth like wget -P wpssgmirror -nd --mirror --convert-links --adjust-extension --page-requisites --no-parent --restrict-file-names=ascii,windows http://localhost:8080
, but it does not preserve the directory structure of the assets. It also has problems as it has ?ver=123
in the asset names
本文标签: Using wget to create a static mirror of a local WordPress installation
版权声明:本文标题:Using wget to create a static mirror of a local WordPress installation 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736672248a1946984.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论