如何将 IIS 7 配置为不查找生成的 cms 页面?
我正在使用 IIS7 和 ASP.NET 4.0
我有一个使用 CMS 系统(特别是 AdxStudio)的网站。网站上的某些页面完全是使用 CMS 生成的。目前,我必须在与 url 匹配的相应目录中放置一个同名的虚拟文件。因此,somesite.com/about/pressroom 必须有一个名为“/about/pressroom/default.aspx”的文件,即使该文件(页面)从未被提供,而是来自 CMS 的文件(页面)被提供。但是,如果虚拟文件不存在,IIS 会给出 404 错误。
那么,如何配置 IIS 7 以便不需要虚拟的“default.aspx”文件。我知道 URL 重写,但我不确定这是否能满足需要,或者是否有其他配置选项就足够了。提前致谢!
I am using IIS7 and ASP.NET 4.0
I have a site that is using a CMS system (specifically AdxStudio). Certain pages on the site are entirely generated using the CMS. Currently, I must place a dummy file of the same name in the respective directory matching the url. So, somesite.com/about/pressroom must have a file called '/about/pressroom/default.aspx', even though that file(page) is never served, but rather the one from the CMS is served. However, if the dummy file is not there, the IIS gives a 404 error.
So, how do I configure IIS 7 so that the dummy 'default.aspx' file is not needed. I am aware of URL Rewrite, but I am unsure if that will do what is needed or if there is some other configuration option that will suffice. Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我想 AdxStudio 有配置建议供您遵循。这绝对是 URL 重写要求,其细节因每个应用程序而异。我们将其用于零件目录,使用 URL 的一部分来识别供应商。由于供应商有数千家,我们不可能做您必须做的事情。
因此,我建议您专门获取有关 AdxSudio 的帮助。
编辑:我还发现了这个: 链接,但我不确定它对您有多大帮助。
I would imagine AdxStudio has configuration recommendations for you to follow. This is absolutely a URL rewrite requirement and the details of that will vary with every application. We use it for parts catalogs, using part of the URL to identify a vendor. With several thousand vendors, it would be impossible for us to do what you've had to do.
So I suggest you get some help with AdxSudio specifically.
Edit: I also found this: link but i'm not sure how helpful it is to you.
我发现这个 adx 讨论可能会有所帮助。
http://community.adxstudio.com/forums/adxstudio -cms/a66a74ec-f67d-4f72-a6d0-8ba7e84ab266
我希望这有帮助。
I found this adx discussion that might help.
http://community.adxstudio.com/forums/adxstudio-cms/a66a74ec-f67d-4f72-a6d0-8ba7e84ab266
I hope this helps.