Nginx Redirect
I have a nginx setup , and there is a redirect in the config to force https, so if a user enters domain.com, they get redirected to https://www.domain.com .
If a user enters https://domain.com, they get an error , because I have no host A record for domain.com, so I want to redirect https to https://www.domain.com when a user enters https://domain.com . |
Quote:
Code:
server { |
Thank you for your reply, but that wont work since "domain.com" isnt a entry in DNS , so it will just a return a server not found page.I need a second redirect in https with an if statement so if a user enter https://domain.com, it get redirected to https://www.domain.com but not sure how to write it
|
Quote:
So it's not a dns issue as domain.com is resolvable for this redirect to work |
Quote:
Quote:
Quote:
Context: My problem was than I had www.domain.com as a host A record, and then created a Cname domain.com..But when I go to create a MX record now for domain.com, I get a conflict.And if I tried to create a host A record for domain.com, nothing happens. So I deleted www.domain.com, then created host A record for domain.com, then created www.domain.com then MX record and its all fine now. Thank you for your replies. |
All times are GMT -5. The time now is 04:33 PM. |