Joomla到静态HTML网站 [英] Joomla to Static HTML website

查看:169
本文介绍了Joomla到静态HTML网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Joomla上托管有印地语杂志网站.尽管从发布的角度来看很有帮助,但该站点是维护方面的噩梦. Joomla非常容易受到黑客攻击.由于僵尸程序攻击我的网站,我的主机通常会关闭我的网站.最近,我以不同的名称重新启动了该站点,使其成为一个基于Wordpress的新站点.因此,基于Joomla的网站将永远不会更新.但是,我确实想保留旧内容.我使用过PHP,但几乎不是高级用户.

I have a Hindi magazine website hosted on Joomla. Though helpful from publishing point of view the site was a maintenance nightmare. Joomla is so much susceptible to hacker attacks. My host will often shut down my site due to bots attacking my website. Recently I relaunched the site as a new Wordpress based site on a different name. The Joomla based website would therefore never be updated anymore. However, I do want to maintain the old content. I have used PHP but hardly am a power user.

我想将文件转换为纯HTML.我使用HTTrack创建了网站的镜像.但是,由于Joomla在同一页面上具有多种URL(如果您使用的是SEF URL插件,您会理解),因此镜像中充满了多余的内容.此外,我在每个页面中都有重复的HTML内容(用于页眉,页脚,菜单等).

I want to convert the files as plain HTML. I created a mirror of the website using HTTrack. But thanks to the fact that Joomla had variety of URLs for the same page (if you used a SEF URL plugin you would understand) the mirror is full of redundant content. Moreover I have repetitive HTML content (for header,footer,menu etc) in each page.

我的问题是:

  1. 哪个是更好的选择,则创建一个静态HTML网站或PHP4.x页面(具有Unicode内容,并包含用于重复性内容的PHP片段)?
  2. 如果后者更好,我应该使用Smarty这样的模板系统吗?我担心缓存,因为内容几乎不会更新,我希望缓存能够永远持续下去.

感谢您的帮助.

推荐答案

如果您是我,因为您已经开始使用它,所以我会将所有内容移至WordPress.这样,您将维护一个网站应用程序,从长远来看可以更好地管理一切.

If I were you I'd move everything over to WordPress since you have started using this. This way you will be maintaining a single website application keeping things better manageable in the long run.

您可以使用Joomla管理界面将数据复制到Joomla中.甚至可以更快地使用MySQL工具或Navicat之类的数据库工具,该工具具有很多导出选项.

You can copy the data out of Joomla using the Joomla administration interface. Or maybe even quicker using a database tool like MySQL Tools or Navicat which has a lot of export options.

使用HTTrack或TelePort Pro之类的工具从Joomla复制HTML,将导致出现很多重复的代码和页面,如您所说.

Copying the HTML from Joomla using tools like HTTrack or TelePort Pro will result in lots of duplicate code and pages like you state.

维护一个仅用于旧内容的额外PHP网站将与将所有内容都纳入WordPress一样.

Maintaining an extra PHP site just for the old content will be as much effort as getting everything into WordPress.

这篇关于Joomla到静态HTML网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆