URL重定向 [英] URL Redirection
问题描述
我正在尝试实现以下链接中的类似内容.
I am trying to achieve something like, that is on the below link.
此网站位于上述URL.但是,即使您输入.co.uk或.net或.org像任何扩展名一样.该网址将自动重定向到 http://www.laterooms.com/
This website is at the above URL. But even if you type .co.uk or .net or .org Like this any Extension. The URL will be automatically redirected to http://www.laterooms.com/
推荐答案
首先,您应该拥有其他域(带有您想要的扩展名).然后,您可以使用javascript设置 top.location.href ='http://your.address.com/'
或使用其他方式,例如设置网络服务器以重定向请求,或者您的域名注册商.
First of all, you should be in possession of the other domains (with the extensions you want). Then you can either use javascript to set top.location.href='http://your.address.com/'
or use other means, like setting up your web server to redirect the requests, or your domain name registrar.
这篇关于URL重定向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!