内部更改域名
我已经为我的客户提供了一个域名,例如 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以设置从
/test
到/testing
的 HTTP 301/302 重定向。You can setup a HTTP 301/302 redirect from
/test
to/testing
.好吧,如果您使用的是 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! =)