.htaccess文件无效 [英] .htaccess file is not working

查看:318
本文介绍了.htaccess文件无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我正在寻求帮助。我想做网址重写。我写代码例如

Hi to all
I m looking for some help. i want to do url rewritting. i write code e.g

展开 | 选择 < span class =codeDivider> | Wrap | 行号

推荐答案

嘿。


您是否检查了错误日志以查看发生了什么?

默认情况下,该文件位于:
" C:\Program Files \ ApachePache Foundation\Apache2.2\logs\error.log" 的。 (在Windows上,就是这样)


在Linux上,他们可以在不同的地方。我首先看一下 / var / log 目录。
Hey.

Have you checked the error log to see what is going on?
By default, the file is located at:
"C:\Program Files\Apache Software Foundation\Apache2.2\logs\error.log". (On Windows, that is)

On Linux they can be in different places. I''d start by looking at the /var/log directory.


感谢Atli的回复


i打开error.log但我不知道如何从error.log中检查发生了什么
Thanks Atli for your kind reply

i opened error.log but i dont know how to check from error.log that what is going on


检查最新的条目。当您收到内部服务器错误时,实际错误将写入这些日志。


您可以在此处发布它们(不是所有这些,只是那些在您的内部服务器出错时发生的错误)发生了)我们可以帮你弄明白。
Check the latest entries. When you get an internal server error the actual error is written into those logs.

You can post them here (not all of them, just those that happened at the time your internal server error happened) and we can help you figure them out.


这篇关于.htaccess文件无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆