| 
			 
					阅读:2606回复:4
				 
				ANK 伪静态不能访问
					我是网站启用了伙静态,其它环境ok,迁移到ank后发现有问题  apache 2.4+php
 
							伪静态url: http://www.abc.com/list-2.html 真实url: http://www.abc.com/index.php/Content/Index/lists/catid/2 .htaccess 文件规则如下 RewriteEngine on RewriteRule ^list-([0-9]+).html$ index.php/Content/Index/lists/catid/$1 就是不能访问 把上面的url改为 RewriteRule ^list-([0-9]+).html$ http://www.abc.com/index.php/Content/Index/lists/catid/$1 则正常 请各位网友给看看  | 
	|
| 
			 沙发# 
								发布于:2017-11-08 15:30				
			
					fastcgi运行php在伪静态规则的index.php后面加个问号
 
							.htaccess 文件规则修改如下 RewriteEngine on RewriteRule ^list-([0-9]+).html$ index.php?/Content/Index/lists/catid/$1  | 
	|
| 
			 板凳# 
								发布于:2017-11-08 17:10				
			
					版主你好,楼上方法试过了,确认不行				 
							 | 
	|
| 
			 地板# 
								发布于:2017-11-08 20:15				
			
					xampp环境测试没有问题,加不加问号能都可以				 
							 | 
	|
| 
			 4楼# 
								发布于:2017-11-08 20:25				
			
					在xampp环境测试了下,没有问题,如何处理呢				 
							 | 
	|