URl 子域之间切换

发布于 2024-08-20 05:33:11 字数 265 浏览 3 评论 0 原文

我有网站说 http://info.sys.com

我希望将网址中的信息替换为当我在网站中选择知识选项卡时,knowledge.sys.com 。

当我选择知识选项卡时,info.sys.com 应替换为 Knowledge.sys.com。

我使用 jdk 1.5 update 9 和 tomcat 6.0.16

期待您的回复。

I have site say http://info.sys.com

I want the info in the url to be replaced to knowledge.sys.com when i select knowledge tab in my website.

info.sys.com should be replaced to knowledge.sys.com when i select knowledge tab.

I use jdk 1.5 update 9 and tomcat 6.0.16

Looking forward for your reply.

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

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

发布评论

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

评论(2

长不大的小祸害 2024-08-27 05:33:12

如果更改 URL (location.href = 'http://knowledge.sys.com';),页面将重新加载 - 实际上,将加载该地址的页面(是否是同一页面取决于您的服务器)。

不过,您可以使用锚点玩一些游戏(位置的“哈希”部分)。有关详细信息,请查看真正简单的历史记录

If you change the URL (location.href = 'http://knowledge.sys.com';), the page will be reloaded -- well, actually, the page at that address will be loaded (whether that's the same page or not will depend on your server).

There are games you can play with anchors, though (the "hash" part of the location). Check out Really Simple History for more on that.

ぃ弥猫深巷。 2024-08-27 05:33:12

在客户端以编程方式更改 URL 字段将触发浏览器使用更新后的 URL 刷新页面。

这被认为是一项安全功能,可确保 URL 字段始终显示所呈现资源的地址。

如果您无法在 URL 重写引擎 >knowledge.sys.com。可以将其配置为处理对 knowledge.sys.com 的请求,而无需更改应用程序文件结构。

Changing the URL field programmatically on the client-side will trigger the browser to refresh the page with the updated URL.

This is considered a security feature which guarantees that the URL field is always showing the address of the rendered resource.

You can use a URL Rewriting Engine on your server if you cannot host your knowledge base at knowledge.sys.com. This could be configured to handle requests to knowledge.sys.com without having to change your application file structure.

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