| 您的当前位置:首页 --> MYSQL教程 --> apache中访问不了伪静态页面的解决方法 |
| MYSQL教程 apache中访问不了伪静态页面的解决方法 |
| 浏览次数:1161 关键词 ( ) |
| 查看使用该CPU的产品 查看CPU天梯 |
| CPU型号:apache中访问不了伪静态页面的解决方法 |
| 主频:Ghz |
| 睿频:Ghz |
| 核心数:个 |
| 不支持超核心 |
| 制作工艺: |
| 插槽类型: |
| 功耗:0W |
| L3缓存:0MB |
| 支持最大内存: 0GB |
| CPU详细参数 |
|
1、安装 复制代码 代码如下: ./configure --prefix=/usr/local/apache2 --enable-so --enable-rewrite --enable-ssl 这时apache已经拥有的伪静态功能了,称为内建伪静态。 2、如果安装的时候没有 --enable-rewrite 这个参数,那么: 3、让apache服务器支持.htaccess 复制代码 代码如下: RewriteEngine On RewriteBase / # Rewrite规则 RewriteRule ^index\.htm$ index\.php RewriteRule ^jobs/jobs-show-([0-9]+)\.htm$ jobs/jobs-show\.php\?id=$1 RewriteRule ^company/company-show-([0-9]+)\.htm$ company/company-show\.php\?id=$1 RewriteRule ^resume/resume-show-([0-9]+)\.htm$ resume/resume-show\.php\?id=$1 RewriteRule ^news/news-list-([0-9]+)-([0-9]+)\.htm$ news/news-list\.php\?id=$1&page=$2 RewriteRule ^news/news-show-([0-9]+)\.htm$ news/news-show\.php\?id=$1 RewriteRule ^explain/explain-show-([0-9]+)\.htm$ explain/explain-show\.php\?id=$1 RewriteRule ^notice/notice-list-([0-9]+)-([0-9]+)\.htm$ notice/notice-list\.php\?id=$1&page=$2 RewriteRule ^notice/notice-show-([0-9]+)\.htm$ notice/notice-show\.php\?id=$1 伪静态报错: |
| 下一个产品 SQL计算timestamp的差值的方法 上一个产品 配置mysql允许远程连接的方法 |