How can I set https: at first of my domain name - wordpress

I've a wordpress site www.example.net. Usually when visitors visit my site, the domain name look like this example.net in the browser addressbar. Recently I added an SSL certificate in my website, so https://example.net/ is working well but the https: is not showing as default in my browser addressbar.
So How can I make my default domain address like this https://example.net/ , instead of example.net ?

Tell your hosting to set it up for you, and you by your own sign up in google webmaster tools, set your default domain to HTTPS instead the HTTP. That worked for me.
Also in all your internal or external links use HTTPS in the HREF or use just // instead Https://

Related

wordpress social login plugin returning ERR_INVALID_REDIRECT having NGINX for hosting and load balancing

I am using wordpress social login 2.3.3 and enabled yahoo, twitter and facebook. But in my infrastructure i am using nginx for hosting webpage and there is another instance of nginx used for load balancing the traffic. My domain is registered and i am using non-standard port for HTTPS.
My issue is when after entering the Yahoo credentials by credentials are getting successfully authenticated and when hauth.done=Yahoo gives me sent an invalid response ERR_INVALID_REDIRECT
As per the code in wsl 2.3.3 author has already taken care of non standard port. So the issue seems to be narrowed down to Nginx configuration.
Please help!!
This is mainly because of below wrong parameters posted in general
redirect_to
baseUrl
In general it means with respect to HybridAuth that you are not landed on right page.
As you said that you are using Nginx as loadbalancer and server. You need to check your server request attributes.
You should look for
HTTP_X_FORWARDED_PORT
SERVER_PORT
HTTP_HOST
HTTP_X_FORWARDED_HOST
There can be other parameters as well, with all these attributes plugin forms correct URL.
Hope that Helps :)
ERR_INVALID_REDIRECT is caused because your redirect url in developers.yahoo.com and redirect url in plugin does not match. Try to configure them identically.

Setting up Google login in production environment

Google asks for "Authorized Java Script Origin" & "Authorized Redirect URL" which is given to us by Meteor as follows https://localhost:3000 & https://localhost:3000/_ouath/google Respectively.
My concern now is, to what URL's should I change them in production environment?
You should use your domain (or IP address, whichever you use to access your website) instead of localhost:3000.
E.g. if you deploy your app to example.com your "Authorized Java Script Origin" & "Authorized Redirect URL" would be
https://example.com & https://example.com/_oauth/google
Note: you use https in your example links, so that's what I did too. Make sure your website has it set up, otherwise it won't work. If you are not sure what it is and how to do it, just use http instead of https everywhere and change it back after/if you set it up.
Also be careful with the ports. You might need to use example.com:3000 depending on how you deploy your app.

addon domain not working on http cloudflare

I've set up a parked domain and set it's nameservers to cloudflare nameservers. but I have a strange problem. I can access the parked domain only with https (e.g. https://domain.xyz).
If I access it using http it will redirect to defaultwebpage.cgi. but if I access one of the files or folders or pages (e.g. http://domain.xyz/test) the page will load without any problems. the problem only exists on the homepage (e.g. http://domain.xyz).
the cloudflare is using flexible setting.
It's not cloudflare issues, Might be there is an issues with your local end, Please try to clear your browser cache and try again. OR try to check your domain through proxy sites.
Did you create any Page Rules in Cloudflare? I understand that you use a Cloudflare Flexible SSL certificate. In order to redirect http traffic (with our without www) to https traffic you need to add a Page Rule in Cloudflare. Did you do that?
Create a page rule like this in Cloudflare:
http://*.domain.xyz/* that redirects to https://www.domain.xyz/$1

How can Https links from Google search be redirected to Http after the SSL was removed from site?

Recently I added SSL to my WordPress site but it started causing some problems (conflicts with Woocommerce and WP Super Cache plugins). The problem the I was having because of SSL was that the the Woocommerce cart was sometimes showing empty even after adding a product ans sometime the cart was not proceeding to checkout page. Do you think it had something to do with WP Super Cache or SSL or both? Anyway, I couldn't get it solved and removed the SSL after 2 days. But meanwhile Google had indexed the HTTPS URLs of my site and was showing them in the search results and they were returning SSL connection error. Now my question is how can I redirect all those HTTPS URLs to the HTTP ones? I asked my web host for help but said the redirection is not possible through htaccess or any other method. Was he right? How long will Google take to 'forget' these HTTPS links and show the HTTPS links again in search Results?
There are two standard ways to redirect:
At the DNS level
At the HTTP level
The DNS level can't help you because it just changes hostname. You want to keep the same hostname but change the scheme. This means you need an HTTP server to do the redirect.
In order to redirect from https to http you need to have an HTTPS service running on the computer with the IP address that the hostname resolves to.
Without that, there is nothing the receive the HTTP request over SSL and response with "Oh, this has moved to plain HTTP".
If the SSL service isn't running, then there is nothing that can do that.
(.htaccess is just a (suboptimal) means to configure an HTTP server, that does no good if you don't have the HTTP server listening on SSL).
Personally I'd fix the https issues. The world is going more https everyday so it's a backwards step to go from https to http. If you elaborate on what issues you had someone might be able to help.
However if you really want to do this then you need to run both http and https and redirect all traffic from https to http. How you do this depends on your set up (in Apache you'd do it using htaccess config).
How long it takes Google to fronded your site depends on many factors including the size and popularity of your site - which governs how often Google crawls your website. Give it a month at least for a small site. You can give it a kick by submitting your site to Google Search Console (the new name for Google Webmaster Tools).
Btw StackOverflow is primarily for programming questions so questions like this might be better asked on the http://webmasters.stackexchange.com sister site.

IIS configurations issue

We are setting up a website with secure and non secure pages. These have been added for mapping in uriworker.properties. The domain name in the urls are different . Example nonsecure url is x-y-z.a.b.org and our secure url is x-y-secure-z.a.b.org.Both of these domains are part of our DNS entry. We do not have any redirect rules configured within the webserver. But when we try to access the secure url https://x-y-secure-z.a.b.org, webserver is sending the request as http://x-y-secure-z.a.b.org:443. Due to the scheme not being https , the application does not identify this as secure request and is returning a 302 to the https url. This redirection happens infinitely and then an error appears which says that page is not redirecting properly.
After a lot of analysis , we figured out that the application had a hardcoded check on the scheme of the domain name to be in a certain format as secure.xyz.

Resources