Home  >  Article  >  Backend Development  >  .htaccess不起作用啦!该如何解决

.htaccess不起作用啦!该如何解决

WBOY
WBOYOriginal
2016-06-13 10:58:561650browse

.htaccess不起作用啦!
本帖最后由 weihua99 于 2012-03-29 02:37:04 编辑 .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编码用EditPlus也改为ANSI了。.htaccess跟combine.php文件都放在根目录。不知道还会有什么原因。。。
------解决方案--------------------
重新建一个试试
------解决方案--------------------

引用:
重新建一个试试


重建一个.htaccess文件吗?这没啥区别吧,我实在找不出还有哪里会出问题额。
------解决方案--------------------
顶上去,来者有分啊。
------解决方案--------------------
.htaccess不是应该UTF-8吗?
------解决方案--------------------
引用:
.htaccess不是应该UTF-8吗?


额,改UTF-8也不行
------解决方案--------------------
该回复于2012-03-30 09:14:08被版主删除
Statement:
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