I have a example.net domain (no ssl). I would like to redirect this domain to https://anotherdomain.com. However I would like to keep the subdomains not redirected and continue to work as sub.example.net(no ssl).
How can I manage this? Thank you.
Kind regards
Related
I have a wildcard domain. What I want are:
When user go to mydomain.com, it should be redirect to www.mydomain.com
When user go to subdomain.mydomain.com, keep the connect
When user go to www.subdomain.mydomain.com, it should be redirect to subdomain.mydomain.com
What I can do on domain configs (change the record types) or my web server (I'm using nginx)? I searching the questions but not solve my case. Thanks.
you can use dns configuration to achieve this.
something like this
https://help.instapage.com/hc/en-us/articles/206028427-How-do-I-create-a-301-redirect-for-a-root-naked-domain-in-my-GoDaddy-account-
I have to do a 301 redirect from a domain with NO www to the one with www like:
example.com -> 301 -> www.example.com (same domain)
I've bee looking to this example in the official doumentation, but it seems like the configuration doesn't considerate the whole URL path, is there any way to accomplish this?
I'm thinking about creating a separate project for the domain without www and create a firebase cloud function that takes all requests and do a redirect from there
is that the way to go? any simpler solution?
You can redirect out f the box in firebase an option I haven't noticed you just go to the following options:
Hosting
Connect domain
You can write your domain like "example.com" without www
Select the Redirect check button
Write your redirect destination, in my case, is the same domain with www
That's it!
A more specific solution for Firebase (and registrar-agnostic) was provided by Jack himself.
This is usually accomplished at the domain registrar level rather than at the app level. If your domain is with Google Domains, these would be the steps.
Edit:
Since you have your domain in GoDaddy, I would suggest to follow the instructions on their help center.
My main domain on cpanel is example.com and my secondary site is hosted on the same server at sample-domain.zzz
But when people go to sample-domain.zzz/404-this-page-wont-exist it ends up taking them to sample-domain.zzz as a HTTP 200 :(
I can't figure out how to prevent this. Basically I need WP to stop taking over my other domains redirects. Hope this makes sense
I added CNAME for my.example.com and it works well, problem is with www.my.example.com.
I tried to create another CNAME record for www.my.example.com pointing to firebase, but there is SSL Certification Warning.
How can I redirect www subdomain to non www? Thanks.
According to Firebase hosting docs what you're trying to do won't work.
Subdomain depth: Subdomains of up to one level of depth are supported.
Deeper subdomains, like my.app.example.com, are not allowed.
You could potentially do the redirect through another provider. Some DNS providers for example will do redirects for subdomains.
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