Click here to Skip to main content
15,880,651 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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.
Posted

1 solution

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[^]
 
Share this answer
 
v2
Comments
Gaurav Gupta A Tech Guy 21-Jan-15 5:41am    
but how to do it if i don't have access to server. i do have only ftp access..

and also i wanted to remove security certificate problem by rewriting all urls to https://mywebsite.co.in
jaket-cp 21-Jan-15 5:45am    
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
Gaurav Gupta A Tech Guy 23-Jan-15 0:13am    
problem still persist of certificate error ?
jaket-cp 23-Jan-15 4:32am    
Did you get it to redirect to https?
I assume you do not get this certificate error if you go directly to the https in the browser.
Gaurav Gupta A Tech Guy 23-Jan-15 5:40am    
actually i am getting error while typing https://www.mywebsite.com. if i type https://mywebsite.com then i works fine.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900