htaccess的不工作的本地主机与XAMPP [英] .htaccess not working on localhost with XAMPP

查看:227
本文介绍了htaccess的不工作的本地主机与XAMPP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

用XAMPP,但我不是能够在本地主机使用.htaccess文件的IM。 I M尝试了很多次..在线做工不错。但本地主机显示的 [请求的URL没有被此服务器上找不到]

i m using XAMPP but i m not able to use .htaccess file at local host. i m trying so many times.. Online working good. but local host showing [The requested URL was not found on this server]

我的根文件夹是真正的

localhost/acre/real/property_available.php
localhost/acre/real/properties


<IfModule mod_rewrite.c>
 RewriteEngine On
 RewriteBase /acre/real/
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteRule ^properties$ /property_available.php/$1 [NC,QSA]
</IfModule>

推荐答案

刚刚有过类似的问题

通过检查的httpd.conf

     # AllowOverride controls what directives may be placed in .htaccess files.
     # It can be "All", "None", or any combination of the keywords:
     #   Options FileInfo AuthConfig Limit
     #
     AllowOverride All   <--- make sure this is not set to "None"

这是值得铭记我试过(马克的回答)的把垃圾中的htaccess的,这确实给了服务器错误 - 但即使它被读取,它没有采取行动,由于没有覆盖不允许的。

It is worth bearing in mind I tried (from Mark's answer) the "put garbage in the .htaccess" which did give a server error - but even though it was being read, it wasn't being acted on due to no overrides allowed.

这篇关于htaccess的不工作的本地主机与XAMPP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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