Redirect non-www to www using DNS Zone Editor?
Asked Answered
L

4

10

I've just purchased a new traffic tracking service, which requires my domain (registered at GoDaddy) to have a CNAME record pointing to their servers.

I've done that fine, and it's now working.

However, when typing it in without the "www", I get a 404 error page.

My question is, what would I type in the DNS Zone Editor to redirect my "non-www" domain to the "www" domain?

For example, I need my URL to do this…

http://mydomain.com/1234 --> http://www.mydomain.com/1234

Would it be done using an "A name record" or something? Or another way?

I've searched everywhere and can't find a solution that works, so hopefully you can help.

Thanks, James.

Laurielaurier answered 25/1, 2013 at 11:10 Comment(1)
Update: I got this to work correctly using a reply from GoDaddy's support team. Basically I just needed to use domain forwarding (as karastengal said). Thanks though! :-)Laurielaurier
B
8

Assuming you just want to send all traffic from mydomain.com (known as your 'naked' domain) to www.mydomain.com you should be able to use domain forwarding. In GoDaddy this will be in the Domain Manager under "Domain Information" at the bottom.

Brezhnev answered 26/1, 2013 at 5:0 Comment(0)
U
3

For those having their servers with AWS and domain registered at Godaddy:

I set up my A record with 2 entries (Host: @ and www) as below to redirect to my server in AWS through the public ip. This catches the URLs with/without the www prefix

enter image description here

Uncaredfor answered 24/8, 2016 at 19:2 Comment(0)
K
0

Using DNS Manager we cannot redirect our (naked) domain

(example.com)

to www version

(www.example.com)

we need web hosting for this purpose. because I try it but results are zero. Using domain hosting it is imposible in my views.. By using Forward domain how can i forward the is here. In screen short. there is a option Forward to My domain is in

(www.example.com) Version. if i use this option it will redirect to (example.com) According to these settings.

Kujawa answered 25/1, 2014 at 7:42 Comment(0)
B
0

Note my :

1] Domain name : GoDaddy
2] Hosted (code) : Heroku (minimum $25/month dyno, dyno is virtual machine, dyno is equivalent to EC2 of AWS)
3] SSL certificate : Bought on GoDaddy  ; and endpoint on Heroku (heroku minimum SSL endpoint on $20/month)

These were working :

https://www.example.com/  
http://www.example.com/  
www.example.com 

These were not working :

example.com 
http://example.com/
https://example.com/

My heroku ssl add on had :

www.example.com
example.com

Solution: step 1:in cmd/shell

enter image description here

enter image description here enter image description here

Copy IP address above and use in step 2

step 2:in GoDaddy account

enter image description here

DONE!!!

Note : 1)remove forwarding if you have to use this solution 2)CNAME - www - sslendpoint

Bonniebonns answered 4/7, 2020 at 8:2 Comment(1)
You can ask me doubts related to this. Feel free.Bonniebonns

© 2022 - 2024 — McMap. All rights reserved.