网站的URL屏蔽 [英] URL Masking for website

查看:77
本文介绍了网站的URL屏蔽的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我有一个公共网站www.xyz.com,我想将域名更改为www.abc.com。



我不想更改来源。当用户进入www.abc.com时,它应该选择www.xyz.com的来源,但网址显示应仅在www.abc.com上。



我已经购买了www.abc.com。



请告诉我如何实现这一目标。网站是在C#.net上完成的。



谢谢

Prasanna

解决方案

在这里可能会有一些有趣的事情:

ScottGu的博客 - 提示/技巧:使用ASP.NET重写网址 [ ^ ]


当有人访问www.myepicsearchservice.com时,我希望他们真正使用'www。 google.com'但是网址会显示www.myepicsearchservice.com



希望你能看出为什么这是不可能的:)


< blockquote>如果两个站点的DNS记录指向同一台计算机,您可以让一个IIS站点响应任一域的请求。您只需要为您的站点添加相关IP地址的绑定。 />


然而,这将有对您网站的Google排名产生负面影响,因为这两个域名将被视为重复。最好选择一个首选域,并将所有流量重定向到该域。


Hi,

I have a public website www.xyz.com and i would like to change the domain name as www.abc.com only.

I don't want to change the source. When ever user enters the www.abc.com it should pick the source of www.xyz.com, but the url display should be in www.abc.com only.

I already purchased the www.abc.com.

Please let me know how to achieve this. website is done on C# .net.

Thanks
Prasanna

解决方案

There could be something interesting for you in here:
ScottGu's Blog - Tip/Trick: Url Rewriting with ASP.NET[^]


When someone goes to "www.myepicsearchservice.com" I want them to actually be using 'www.google.com' but the url will show www.myepicsearchservice.com"

Hopefully you can see why this is impossible :)


If the DNS record for both sites points to the same computer, you can have a single IIS site respond to requests for either domain. You just need to add a binding for the relevant IP address(es) to your site.

However, this will have a negative effect on your site's Google rankings, as the two domains will be seen as duplicates. It's better to pick a single preferred domain, and redirect all traffic to that domain.


这篇关于网站的URL屏蔽的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆