简体   繁体   English

.htaccess文件在我的apache服务器上不起作用

[英]the '.htaccess' file won't work on my apache server

I have an Apache server installed on my windows machine using XAMPP. 我使用XAMPP在Windows机器上安装了Apache服务器。 Now I'm trying to use a premade .htaccess file for one of my projects, but it doesn't seem to be seeing it. 现在,我正在尝试为我的一个项目使用预制的.htaccess文件,但似乎没有看到它。 The project just totally ignores it, even though I've enabled mod_rewrite. 即使我启用了mod_rewrite,该项目也完全忽略了它。

Any idea how I can troubleshoot this? 知道如何解决此问题吗? I can't fix it if it just doesn't work and doesn't show me any errors. 如果它不起作用并且没有显示任何错误,我将无法修复。

Appreciate your help. 感谢您的帮助。

In your httpd.conf file, you must enable .htaccess overriding with AllowOverride for the directory where the .htaccess file is (or parent thereof). 在您的httpd.conf文件中,必须为.htaccess文件所在的目录(或其父目录)启用AllowOverride覆盖功能。 If it is set to 'None', the .htaccess files will be ignored. 如果将其设置为“无”,则.htaccess文件将被忽略。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM