如何将URL从http转移到https并从URL中删除www? [英] How to transfer url from http to https and remove www from URL ?

查看:125
本文介绍了如何将URL从http转移到https并从URL中删除www?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将网址从http转移到https并从网址中删除www?



非常迫切需要。请有人告诉我该怎么做?



.htaccess或URL重写可能吗?但请帮我解决详细流程?





需要1: - 浏览器中输入的所有网址都应更改为https:// mywebsite.co.in



否则会给我的网站带来安全证书问题。





需要2: - 如果有人用http URL输入它而不是将其转移到https。

How to transfer url from http to https and remove www from URL ?

it is very urgent need. Please anybody tell me how to do it ?

it might be possible with .htaccess or URL rewriting ? but please help me out with detailed process ?


Need 1 :- all URL typed in browser should be changed into https://mywebsite.co.in

otherwise it gives security certificate issue with my website.


Need 2 :- if somebody types it with http URL than transfer it to https.

推荐答案

Scott Guthrie写了一篇很好的博客。

使用URL重写扩展修复常见的SEO问题:

http://weblogs.asp.net/scottgu/tip-trick-fix-common-seo-problems-using-the-url-rewrite-extension [ ^ ]

如果您控制了iis,它可能会有所帮助。



或者查看这个林k可能的解决方案:

http://blogs.msdn.com/b/kaushal/archive/2013/05/23/http-to-https-redirects-on-iis-7-x -and-higher.aspx [ ^ ]
Scott Guthrie has written a good blog.
Fix Common SEO Problems Using the URL Rewrite Extension:
http://weblogs.asp.net/scottgu/tip-trick-fix-common-seo-problems-using-the-url-rewrite-extension[^]
If you have control of the iis, it may be of help.

Alternatively check out this link for possible solution:
http://blogs.msdn.com/b/kaushal/archive/2013/05/23/http-to-https-redirects-on-iis-7-x-and-higher.aspx[^]


这篇关于如何将URL从http转移到https并从URL中删除www?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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