任何方法,使Magento的主页上使用静态的HTML页面? [英] Any way to make the Magento home page use a static HTML page?

查看:367
本文介绍了任何方法,使Magento的主页上使用静态的HTML页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有什么办法让Magento的主页是一个静态的HTML页面?

Is there any way to have the Magento home page be a static html page?

在高负载情况下的Magento(即使光油,APC,Fooman,块缓存等)可能会很慢。不过,我想在主页要尽可能快。做到这一点的方法之一是只使用静态的HTML页面。

Under heavy load situations Magento (even with Varnish, APC, Fooman, block caching, etc) can be slow. However, I would like the home page to be as fast as possible. One way to do that is to just use a static HTML page.

这可能吗?

推荐答案

在一个简单的mod_rewrite规则删除主的index.php 引导捕获前应该得到你想要的,你想

Dropping in a simple mod_rewrite rule before the main index.php bootstrap capture should get you want you want

RewriteEngine on
RewriteRule ^$ static-html.html [L]

这篇关于任何方法,使Magento的主页上使用静态的HTML页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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