How do I get my SCA site to work with non www when entered into address bar?

I have a Suite Commerce Advanced website that doesn’t redirect correctly with when www is not entered into the address bar.

Works

https://www.domain.com

http://www.domain.com

 

Doesn’t work

https://domain.com

http://domain.com

 

I’ve looked in the NS configurations but may have missed something. Or, perhaps it’s a domain registrar setting.

Rookie Asked on September 9, 2019 in SuiteCommerce.
Add Comment
6 Answer(s)

Take a look at Setting Up a URL Redirect that should be good enough to set up a redirect so everytime somebody request https://domain.com or http://domain.com it get redirected to www.domain.com.

 

Rookie Answered on September 9, 2019.
Add Comment

For something this ‘simple’ it is best to do it with your domain host rather than rely on NetSuite. Some hosts have settings in their control panels specifically for this scenario, while others grant you access to write custom redirect rules.

There are some suggestions here saying that you should write a static A record pointing to a NetSuite IP address and while that may well work, I do want to point out that there are a number of pitfalls with this approach that we document here:

 

Rookie Answered on September 10, 2019.
Add Comment

As previously mentioned, you can either do this using a URL redirect or you can create a CNAME entry in your DNS settings. Here is an example of how to set this up if your hosting is through 123-reg but most providers tend to act pretty similar.

To get it working you’ll want to add an entry where this hostname is “@”. I believe the alias will be the same as your other CNAME record with the www.

Rookie Answered on September 10, 2019.
Add Comment

My DNS account didn’t like me adding the @ CNAME record.

I created a second Domain in NetSuite, as a redirect to the www domain, and it gave a CNAME  of eg: [domain.com.hostning.netsuite.com]

 

I then pinged [domain.com.hosting.netsuite.com] to get the IP, then used an ‘A’ entry on the DNS record using that IP address

Rookie Answered on September 10, 2019.
Add Comment
 

Checkout SuiteAnswer:

Redirect HTTPS non-www domain to HTTPS www domain
Published 06/26/2018 06:31 PM   |    Updated 08/05/2019 09:11 PM   |    Answer Id: 75233
Rookie Answered on September 10, 2019.
Add Comment

You can point the A record to the NetSuite IP, the IP address vary between NetSuite servers.

Do you know which NS Server your website is hosted?

Rookie Answered on September 9, 2019.

It is not good practice to point domain names at NetSuite IP addresses.

See https://system.netsuite.com/app/help/helpcenter.nl?fid=section_n251955.html

on September 10, 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.