我需要EasyPHP和.htaccess的帮助。
.htaccess文件不起作用,我认为这是因为我没有用EasyPHP设置一些东西。
我的EasyPHP版本是5.3.8.1
也许有人知道怎么解决这个问题?
.htaccess文件:
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^get/([^/]+) /func/get.php?link=$1 [NC]
发布于 2012-09-10 10:56:31
在EasyPHP中默认安装Apache没有激活使用.htaccess文件修改文件夹中的服务器配置的选项。
您必须告诉Apache可以用.htaccess文件更改什么配置,以及在哪个文件夹中。要在主web服务器上启用所有配置更改,您应该编辑http.conf (在Apache/conf文件夹中),并查找:
<Directory "${path}/www">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# 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 None
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>和改变
AllowOverride None至
AllowOverride All要更好地对其进行微调,请阅读关于AllowOverride:http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride中的文档
另外,检查http.conf是否激活了mod_rewrite,请查找:
#LoadModule rewrite_module modules/mod_rewrite.so并移除前面的"#“
LoadModule rewrite_module modules/mod_rewrite.so发布于 2013-07-03 23:48:47
在本地网站工作时,我通过添加网站路径(使用.htaccess)作为虚拟主机来解决这个问题。Easyphp有这样一个模块:“虚拟主机管理器”。这将自动处理httpd.conf。
https://stackoverflow.com/questions/8158770
复制相似问题