.htaccess不起作用啦!来者有分!该怎么处理

WBOY
Release: 2016-06-13 13:41:10
Original
893 people have browsed it

.htaccess不起作用啦!来者有分!
.htaccess内容如下:
RewriteEngine On
RewriteBase /
RewriteRule ^cms/5gameweb/statics/css/5g/css/(.*\.css) /combine.php?type=css&files=$1
RewriteRule ^cms/5gameweb/statics/css/5g/js/(.*\.js) /combine.php?type=javascript&files=$1

Windows7环境,安装phpStudy集成环境。

httpd.conf已经修改了如下内容:

LoadModule rewrite_module modules/mod_rewrite.so
Options All
AllowOverride All

AccessFileName .htaccess

无法生效。.htaccess跟combine.php文件都放在根目录。不知道还会有什么原因。。。

------解决方案--------------------
据说来的都有分拿,我就来了~~
------解决方案--------------------
来看看。听LZ的意思是 以前起作用的,突然不起作用了?
------解决方案--------------------
信息不足,先分开测试吧
先确认你的apache能正常工作,然后是最基本的htaccess能工作,然后是rewrite模块单独能工作
然后才是联调....apache的日志里会有详细信息的
------解决方案--------------------
请先确认你的重写模块是否以打开,还有就是 修改 http.conf配置的时候,不止一处!

RewriteBase /
 舍得根目录 有没问题?
------解决方案--------------------

探讨
.htaccess内容如下:
RewriteEngine On
RewriteBase /
RewriteRule ^cms/5gameweb/statics/css/5g/css/(.*\.css) /combine.php?type=css&files=$1
RewriteRule ^cms/5gameweb/statics/css/5g/js/(.*\.js) /combin……
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template