在 Alias 下运行 Zend 站点?

发布于 2024-09-03 02:23:32 字数 395 浏览 3 评论 0原文

我想在 WAMP 上以别名运行 Zend 站点。我可以设置别名,但是当我在那里复制工作的 Zend 站点并修改 .htaccess 以包含“RewriteBase /alias”时,它仍然不起作用。错误消息告诉我找不到控制器。主要是这样发生的:

我有:server.com/alias 内部有 Zend 文件结构(应用程序、公共文件等)。

别名指向 c:/wamp/apps/alias Zend 结构的存储位置。

.htaccess 有行: RewriteBase /alias

据我了解 server.com/alias 应该充当根文件夹,但事实并非如此。如果我在根文件夹下运行 Zend 站点,那么一切都会正常。

您能告诉我如何正确设置别名以在 WAMP 上运行 Zend 站点吗?谢谢。

I want to run Zend site under an alias on WAMP. I am able to setup alias, but when I copy a working Zend site there and modify .htaccess to include "RewriteBase /alias", it still does not work. Error messages tell me that controller not found. Mainly this is what happen:

I have: server.com/alias
With Zend file structure inside (application, public, etc).

alias points to c:/wamp/apps/alias
Where Zend structure is stored.

.htaccess has line: RewriteBase /alias

As I understand server.com/alias should act as root folder, but it's not. If I run Zend site under root folder everything works fine then.

Can you tell me how to properly set up alias to run Zend site on WAMP? Thank you.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

北风几吹夏 2024-09-10 02:23:32

我认为问题是你的重写规则不能很好地工作。看看这个

I think the problem is that your rewrite rules doesn't work well. take a look at this.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文