easyphp 和 .htaccess
我需要 EasyPHP 和 .htaccess 的帮助。
.htaccess 文件不起作用,我认为这是因为我没有使用 EasyPHP 设置某些内容。
我的 EasyPHP 版本是 5.3.8.1
也许有人知道如何解决这个问题?
.htaccess 文件:
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^get/([^/]+) /func/get.php?link=$1 [NC]
I need help with EasyPHP and .htaccess .
The .htaccess file isn't working, I think its because I didn't setup something with EasyPHP.
My EasyPHP version is 5.3.8.1
Maybe anyone knows how to fix this problem ?
.htaccess file :
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^get/([^/]+) /func/get.php?link=$1 [NC]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
EasyPHP 中 Apache 的默认安装没有激活使用 .htaccess 文件修改文件夹中的服务器配置的选项。
您必须告诉 Apache 可以使用 .htaccess 文件更改哪些配置以及在哪个文件夹中。要启用主 Web 服务器上的所有配置更改,您应该编辑 http.conf (在 Apache/conf 文件夹中),并查找:
并更改
为
要更好地对其进行微调,请阅读有关 的文档允许覆盖:
http://httpd.apache.org/docs/2.2/mod/core .html#allowoverride
另外,检查 http.conf 是否已激活 mod_rewrite,查找:
并删除前导“#”
Default installation of Apache in EasyPHP don't have activated the option to use .htaccess files to modify server configuration in folders.
You have to tell Apache what configuration can be changed with .htaccess files, and in which folder. To enable all config changes on main web server, you should edit http.conf (in Apache/conf folder), and look for:
and change
to
To better fine tune it, read documentation about AllowOverride in:
http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride
Also, check that http.conf has mod_rewrite activated, look for:
And remove the leading "#"
在本地网站上工作时,我通过添加网站路径(带有 .htaccess)作为虚拟主机来解决此问题。 Easyphp 有一个用于此目的的模块:“虚拟主机管理器”。这将自动处理httpd.conf。
When working on a local website I fixed this problem by adding the website path (with the .htaccess) as a virtual host. Easyphp has got a module for this: 'Virtual Hosts Manager'. This wil automatically take care of the httpd.conf.