Wordpress Subdomain sites redirect to main site - wordpress

We use wordpress and our subdomain sites recently started redirecting to our main site.
Exmaple, sub.example.com/products redirects to https://example.com/products and gets a 404.
I did notice if I add https:// in front of the subdomain it goes to the proper subdomain site. What would cause that? How would I fix that issue? I want the user to be able to put sub.example.com and get the proper site without needing to type in the https part.
The only thing that I remember changing recently was adding the ssl certificate.
Thanks!

I recently experienced this issue. Check for any wordpress plugins forcing HTTPs on any http domains. Or anything on your subdomain forcing https when it isn't an https site.

Related

wordpress redirect https domain to http site

I have a Wordpress site on a domain like http://friend.mysite.com
I want to redirect to this site form a domain with ssl like https://myfriendsdomain.com
I activated ssl and proxy on myfriendsdomain and its also in the browser address bar. The site is shown, but the formatting is broken. looks like css is off or something. I'm an App developer, so I make websites only from time to time.
What can I do, to make this redirection with https work?
You need to go to Cpanel and redirect the domain to a specific location.

Subdomainare doing a 301 redirect without my knowledge

I'm having a super weird issue for my site at baby-golightly.com. I route all traffic over Cloudflare and everything works fine for the main domain. However I've made a subdomain called blog.baby-golightly.com which somehow redirect all requests to the mainsite:
What I dont understand is how WP can make a redirect when its not even installed on the subdomain? I've looked into .htaccess but couldn't see any obvious error.

What Cloudflare page rules should be added for a WordPress website to run on HTTPS naked (non www) URLs only?

Here is the existing configuration of my site:
I have a CNAME record www to example.com in Cloudflare DNS settings.
Nothing in .htaccess of the original host server.
WordPress site has its Website and Home address set to http://example.com
I don't have a clear understanding of what Cloudflare does and how it integrates with WordPress. However, I would like to achieve this without making any changes in WordPress. What DNS and Page Rules combo should I configure in order to serve all the URLs ONLY over https without www?
Based on this answer here, I tried changing my DNS settings but it didn't work. And I can't get my head around Cloudflare Page Rules.
In order to accomplish this you should create two Page Rules. One that redirects all traffic to https, and another that directs all www traffic to the root domain.
You can find directions for these Page Rules on this KB article (they are the first two). Or there is a video tutorial as well. If you are already maxed out on Page Rules there is also an option now to purchase additional rules without changing plans.
(I'm from Cloudflare)

Wordpress permalink and HTTPS

I installed HTTPS on my website in WordPress . I use CloudFlare for it and I made changes to the URL in WordPress administration and the CloudFlare plugins etc.
screenshot of home page modification
My concern is the following I have HTTPS in my WordPress general settings . I have HTTPS in the permalinks confirmation page.
Only once editing a page or a project under the title permiliens the portfolio is in HTTP ...
I do not understand why it does not go into HTTPS ( for doing so on other sites I do not remember such a problem).
Can you help me?
First of all make sure that your site is only opening up with https and not with http and https.
In the WP general settings wordpress and site name should start with https
Then logout and then login back to wordpress admin. Post that your permalinks should start displaying as https. Also you need to change the internal links to https manually.
Let me know if that fixed the issue. I had similar problems with my site, for which i moved to https just yesterday. Also let me know if you did anything extra for your site.

HTTPS to HTTP redirect via .htaccess

I have a website hosted on a GoDaddy wordpress hosting. We had an SSL, but not longer have the SSL. Google archive some pages with the SSL so I just want to redirect https requests to the http version of the sit.e I have access to the .htaccess file so I figured that was the best way to do it.
I have been searching around and tried tons of different .htaccess redirects, but none of them are working. Including this https to http 301 redirect via htaccess. I know the htaccess is functioning because wordpress is working and I added a few test redirects to it and they worked as well.
Any thoughts or suggestions would be much appreciated.
Thanks.
Wordpress has its own redirect procedure.
Check in the General Settings of you WP Panel for the WordPress Address and the Site Address fields. Make sure they both are non ssl absolute paths.
Another thing to check is on the wp-config.php
define('FORCE_SSL_ADMIN', true);
That could have been added by another plugin. Remove it or make it false.
One last thing you could try (not the best option) is to ask google to remove those specific links, here's a reference for that.
I hope this helps.

Resources