dqwh1219 2014-03-26 11:51
浏览 53
已采纳

如何将php / mysql站点更改为静态站点[关闭]

I've got large joomla app on my server and I want to migrate its live view to another server. But due to server performance reasons, server admin want's only static html/css sites with js eventually so i can't copy whole site. Of course getting sources manually is not an option because there is a lot of sites and it will take to much time to generate it again on every article update.

  1. Is there a way to do it?
  2. I am thinking about using cache to achieve this, what You think about it? If the cache generated on my server and then copied to target server will do the job (I think not because of different URL's)?
  3. Any ideas to handle this?

I know this is strange, but I must do it somehow =/

  • 写回答

1条回答 默认 最新

  • douxing9813 2014-03-26 12:12
    关注

    You will need to prepare the site, remove dynamic elements like contact forms, search boxes, etc..., and then:

    nice wget --mirror -e robots=off --page-requisites --html-extension -nv --base=./ --convert-links --directory-prefix=./ http://www.example.com/
    

    This will create a static archive of the site example.com, on a *nix system, located in the current directory.

    A google search for "joomla static archive" turned up this post: http://vaasa.hacklab.fi/2013/11/28/howto-make-a-static-copy-of-joomla-site-with-wget/

    The Drupal related documentation may also be helpful to understanding some aspects of the process: https://drupal.org/node/27882

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 求lingo代码和思路
  • ¥15 公交车和无人机协同运输
  • ¥15 stm32代码移植没反应
  • ¥15 matlab基于pde算法图像修复,为什么只能对示例图像有效
  • ¥100 连续两帧图像高速减法
  • ¥15 如何绘制动力学系统的相图
  • ¥15 对接wps接口实现获取元数据
  • ¥20 给自己本科IT专业毕业的妹m找个实习工作
  • ¥15 用友U8:向一个无法连接的网络尝试了一个套接字操作,如何解决?
  • ¥30 我的代码按理说完成了模型的搭建、训练、验证测试等工作(标签-网络|关键词-变化检测)