内部更改域名

发布于 2024-09-11 23:12:46 字数 135 浏览 1 评论 0原文

我已经为我的客户提供了一个域名,例如 www.xyz.com/test。

现在,出于某种原因,我想将其更改为 www.xyz.com/testing,但我希望客户端继续输入 www.xyz.com/test。

我该怎么做呢?

I have given my client a domain like www.xyz.com/test.

Now for some reason I want to change it to www.xyz.com/testing but I want that client will continue to type www.xyz.com/test.

How can I do it?

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

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

发布评论

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

评论(2

晨与橙与城 2024-09-18 23:12:46

您可以设置从 /test/testing 的 HTTP 301/302 重定向。

You can setup a HTTP 301/302 redirect from /test to /testing.

久隐师 2024-09-18 23:12:46

好吧,如果您使用的是 Apache 服务器,您应该能够使用 htaccess 文件将 URL 路由到服务器上的实际位置。有多种方法可以创建 301/302 重定向,例如简单的 RewriteRule,它将所有对“xyz.com/testing/...”的调用路由到服务器上的实际位置“xyz.com/test/..” .”。

祝你好运! =)

Well, if you're on an Apache server you should be able to use an htaccess file to route the URL to the actual location on your server. There's a couple of ways of creating 301/302 redirects, such as a plain RewriteRule that routes all calls to "xyz.com/testing/..." to the actual location on the server, "xyz.com/test/...".

Good luck! =)

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