我是WINXP系统的,安装了APACHE+PHP+MYSQL,PHP源码都写好了,就是伪静态一直实现不了,一直提示404错误页面,这是为什么呢?
LoadModule rewrite_module modules/mod_rewrite.so已打开,AllowOverride All已改,请问还需要做什么吗?
我要实现:
http://www.aaa.com/index.php 到http://www.aaa.com/index.html
http://www.aaa.com/news_view.php?id=1 到http://www.aaa.com/news_view/1.html已写的HTACCESS如下:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.html$ /index.php
RewriteRule ^news_view\([0-9]+)\.html$ /news_view.php?id=$1
RewriteRule ^news_view/([a-z0-9\-]+\.html)$ /news_view.php?$1
</IfModule>请问如何修改,急呀!
LoadModule rewrite_module modules/mod_rewrite.so已打开,AllowOverride All已改,请问还需要做什么吗?
我要实现:
http://www.aaa.com/index.php 到http://www.aaa.com/index.html
http://www.aaa.com/news_view.php?id=1 到http://www.aaa.com/news_view/1.html已写的HTACCESS如下:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.html$ /index.php
RewriteRule ^news_view\([0-9]+)\.html$ /news_view.php?id=$1
RewriteRule ^news_view/([a-z0-9\-]+\.html)$ /news_view.php?$1
</IfModule>请问如何修改,急呀!
解决方案 »
- APMServ如何配置,启动时显示apache启动失败
- 这么给力的“专区”功能是怎么实现的?!
- 最后一点分,请教一个入门问题
- 刚学PHP,不知道配合那种网页编辑器最好用?大家都在用那些?
- thinkphp model验证不得行
- 这样的网址如何做的重定向 item_detail-db1-beb15c9879259f7c4a367324d78b7b31.jhtml
- php+mysql 分頁打印問題
- 请问如何实现网页绑定电脑,只允许一个人登录
- php得数组使用'label'=>__('abc','xyz');类似这样的形式,是什么意思?
- WEB获取客户端MAC地址
- 求一个正则 能在php使用
- 小问题 ??
#http://www.sinbao.cnRewriteBase /RewriteRule ^index.html$ index.php
RewriteRule ^info/([0-9]+)\.html$ info.php?t=$1