I’m just setting up a webserver at AA, I’ve emailed them with a few questions. If I try to do an http GET by hand using telnet to port 80, I can get the http response that I want if I include a "www." in the request. Without the www, I get an error response.
When I’ve tackled this kind of things before I used .htaccess and mod_rewrite to redirect www to / or the other way round, I can’t remember. I will ask AA if users are allowed to use .htaccess files.
What do you think is the best way of dealing with the www or nothing issue in general?
AA has a web page dealing with this and giving a solution. However I don’t have a webpage on that webserver; all I have is an http 301 redirect to another domain on a different server and that has been implemented with an index.http and a Location: field as according to AA’s support note. That all works, the redirect, but only if www is specified.
On the DNS server I’ve done a redirect for www. to the same webserver by using a CNAME. But as far as what’s going on without the www, I’m lost.
It’s so long, 15 years ago since I last set this up on a server, so I just can’t remember the details, but the power of .htaccess makes it easy to do anything.