Thread Rating:
  • 0 Vote(s) - 0 Average
Share Thread:
How to redirect site from http to https?
#1
Hello friends,

 I Have face A problem In My Website , Please tell me, How to redirect site from http to https?
Reply
#2
You have to put the redirect code in your .htaccess file in order to make it happen. I don't know the code but surely someone in this forum will help you out.
Reply
#3
Use this if you are using apache.

Code:
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L]
Reply
[-] The following 1 user Likes supaul's post:
  • lata21
#4
Can you also provide me the code for www to non-www redirects?
Reply
#5
I am also looking for a redirect code that can redirect one of my sub-domain to main domain.
Reply
#6
You guys are worrying too much. The guys who are trying to do a redirect from a sub-domain to main domain or vice versa. To those people I say that if you are using cPanel in your hosting plan then check its Main Control Panel. It provides all the options of doing these type of redirects without even touching the .htaccess file. And those people who doesn't have a choice and have to use the .htaccess file, to them I will refer this post. https://serverguy.com/servers/redirect-http-to-https/ I hope this helps you.

Note:- The linked post is a promotional article of the hosted site.
Reply
#7
Hi,
Log in to Cloud Flare and select the site.
Go to Page Rules.
Click “Create Page Rule”
Enter the URL
Click “Add a Setting” and select “Always Use HTTPS” from the drop-down.
Reply
#8
(05-17-2019, 06:33 AM)Mangat Singh Dhiman Wrote: Hi,
Log in to Cloud Flare and select the site.
Go to Page Rules.
Click “Create Page Rule”
Enter the URL
Click “Add a Setting” and select “Always Use HTTPS” from the drop-down.

Good God !!! man.

Did you just assume that the OP is using Cloudflare?? Tongue
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)
[-]
Ad

[-]
Top Articles
100+ Social Bookmarking Sites List
55+ Image Submission Sites List

[-]
Recent Posts
Monster XL Male Enhancement [Fake or LEGIT]!
Monster XL Male Enhancement || Men might be know about these explanations tormenting the...EricMered — 04:13 AM
Tips to Grow Your Business
To grow your business, it's crucial to know your customers inside and out. Building a str...ReesSamantha — 08:04 PM
Relevant anchor text links, how many per page?
recommend keeping anchor text to five words or less. As a reminder, Google can view an ex...Alex Jones — 03:24 PM
Do you guys automate the Internal Linking process?
Automated tools can assist in this process, creating a site structure that is not only SE...Alex Jones — 03:20 PM
What is Link Baiting?
Link baiting is one of the best SEO strategies where you try to create unique, provocativ...Alex Jones — 03:19 PM

[-]
Follow us on Facebook