Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I have a website that is a small, one page html/css/js site. I want the viewers to be able to view the same site whether they are coming from www.domain.com or just domain.com, without redirection. Is this possible?
What web server software are you using? IIS?
Have two A records, "www.yoursite.com" and "yoursite.com" point to same IP, and set the bindings on the site in your server to take in both request.
Is there any reason why you can't just redirect DNS? That is, set up two address records that point at the server and the client will get the same site.