我如何为 Zend Framework 项目中的 1 个模块编写 .htaccess

发布于 2024-09-27 03:13:51 字数 397 浏览 0 评论 0原文

我有一个 zend 框架项目,有 2 个模块 - 管理模块和默认模块。管理员用于管理我的东西,默认值只能用于我的客户。这就是为什么我想将默认模块限制为仅允许的域。我在谷歌中搜索,发现我可以通过该代码限制 .htaccess: http://www.eukhost.com/论坛/f18/get-domain-site-sent-http-request-9388/ [绿色和红色代码]。

问题是,由于一切都是 zend 框架在 index.php 上运行,我似乎无法限制 .htaccess 仅适用于 1 个模块。 那么我该怎么做呢?

谢谢

I have a zend framework project with 2 modules - admin and default. the admin is for managing my stuff and the default should be used only for my clients. that's why i wanted to limit the default module only to the allowed domains. i searched in google and found that i can can limit the .htaccess by that code:
http://www.eukhost.com/forums/f18/get-domain-site-sent-http-request-9388/
[the green and red code].

The problem is that since everything is the zend framework works on the index.php i cant seem to be able to limit the .htaccess only for 1 module.
so how can i do that?

thanks

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

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

发布评论

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

评论(1

孤蝉 2024-10-04 03:13:51

我建议阅读 Zend_Acl: http://devzone.zend.com/article/1665这将允许您根据分配的角色控制哪些用户可以访问哪些模块/控制器

I would recommend reading up on Zend_Acl: http://devzone.zend.com/article/1665 which will allow you to control which users can access which modules/controllers based on their assigned role

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