---
title: "打开apache的mod_rewrite机制"
author: "ideaforj"
date: "2012-10-22T21:07:14Z"
tags: []
categories: ["编程语言"]
slug: "apache-mod-rewrite"
draft: false
lastmod: "2012-10-22T21:07:14Z"
id: 1703289
url: "https://ideaforj.iteye.com/blog/1703289"
---

如果要使用apche的**mod\_rewrite 进行页面的静态化设置**

需要先开启apache的**mod\_rewrite**

步骤

1、找到apche的 httpd.conf 文件

2、开启LoadModule rewrite\_module modules/mod\_rewrite.so

找到上面这句话，取消掉前面的注释即可