容器技术交流

 找回密码
 立即注册
查看: 5229|回复: 2

关于.htaccess不生效的问题

[复制链接]
发表于 2013-6-8 14:13:40 | 显示全部楼层 |阅读模式
我以前的系统也是LINUX 系统Kloxo面板 以前.htaccess可以对HTML 页面生效的,可是换到新的VPS 使用LUMANAGER面板 现在搭建好了 .htaccess 却好像没有什么作用
<IfModule mod_rewrite.c>
RewriteEngine on

RewriteRule ^snapshot\/([a-zA-Z0-9]+)$  snapshot\.php\?p=$1 [QSA,L]
RewriteRule ^submits\.html$  submits\.php [QSA,L]
RewriteRule ^submit\.html$  submit\.php [QSA,L]
RewriteRule ^index\.html$  index\.php [QSA,L]
RewriteRule ^hackers\.html$  hackers\.php [QSA,L]
</IfModule>
###Start Kloxo PHP config Area
###Please Don't edit these comments or the content in between. kloxo uses this to recognize the lines it writes to the the file. If the above line is corrupted, it may fail to recognize them, leading to multiple lines.
###.htaccess For Apache by Kloxo
###End Kloxo PHP config Area


Options -Indexes
就是转换成HTML 没有生效  求解

发表于 2013-9-19 14:34:04 | 显示全部楼层
同问Lumnager下安装在Centos系统中,选择都是用apache执行,根目录下.htaccess无法生效的问题?
发表于 2013-10-5 10:53:07 | 显示全部楼层
帮顶............................
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Archiver|URLOS ( 粤ICP备18087780号 )

GMT+8, 2025-5-8 06:51 , Processed in 0.040893 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表