MYSQL教程apache中访问不了伪静态页面的解决方法
《MYSQL教程apache中访问不了伪静态页面的解决方法》要点: 1、安装 ./configure --prefix=/usr/local/apache2 --enable-so --enable-rewrite --enable-ssl 这时apache已经拥有的伪静态功能了,称为内建伪静态.MYSQL实例 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 伪静态报错: (编辑:岳阳站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- 如何使用Sequelize和mySql选择外键列的名称?
- 如何使用QuerySets和MySql“全文搜索”在多个字段中进行Dja
- php – 使用MySQL的UNION中每个SELECT的不同ORDER BY
- 有没有更好的方法为MySQL中的临时表分配权限?
- Mysql实例Linux mysql命令安装允许远程连接的安装设置方法
- mysql – 使用JSON而不是规范化数据,这种方法是否正确?
- php – MySQL:从类别中获取帖子
- Mysql必读CentOS下php使用127.0.0.1不能连接mysql的解决方法
- php – 使用mysql PDO获取字符集
- Rails应用程序无法连接到mysql,无法通过socket’/var/run/m