Membership is FREE, giving all registered users unlimited access to every Acorn Domains feature, resource, and tool! Optional membership upgrades unlock exclusive benefits like profile signatures with links, banner placements, appearances in the weekly newsletter, and much more - customized to your membership level!

Website help

All that's in the file is the following:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain.co.uk [NC]
RewriteRule ^(.*)$ http://www.domain.co.uk/$1 [L,R=301]

Checked on downforeveryoneorjustme.com and that says not just me, the site is down. I'm sure the file name for .HTACCESS has to be in capitals, yes
 
it's normally lowercase, linux is case sensitive too (if your server is running that)
 
it's a little checkbox under network tab, called "disable cache". when you have dev tools open and this is checked, all requests will be non-cached

Ok, got it, ticked it but site still redirecting to domain.co.uk/domain.co.uk after going to the non www. version

you may want to look at DNS config too, make sure there's an A record for @

Sorry, I don't know what that means

Ok, renamed file name to lowercase, was sure I saw last night on Google it had to be uppercase.
 
if "domainname.co.uk" is not resolving then you need to add an 'A' record to your DNS config to point the "naked domain", or "@" to the ip address of your server. The "www" can then become a CNAME record and point to "@"
 
I have no way to do settings like that, I've only got the Nominet control panel for adding nameservers, nothing else like records.

I remember I had to do that sort of stuff for 1 website a long time ago, and it was a nightmare trying to figure anything out, I ain't really got a clue when people mention A records and things pointing at @ symbols, and I didn't need to do that with any other sites I've made hosted on HostGator, so no idea why there's a problem with this new site.
 
do HostGator offer DNS hosting? if not, create a free account at cloudflare and use them to manage your dns.
 
I really don't want to use DNS stuff, I don't feel comfortable using it, it took ages to get a single site working a long time ago using that stuff, I just like setting nameservers and boom, done.

The nameservers set are correct as I use the same server names for other sites:

ns2587.hostgator.com
ns2588.hostgator.com
 
ok, do you have access to cPanel at hostgator? you could add the A @ record there. you need to add it to resolve to the non-www domain unfortunately.
 
Ben, the only thing I've ever done with any of my websites, is set the nameservers to HostGator, upload the html files and the site is live, no DNS records at any point apart from setting the nameserver mames at Nominet.

On that link you gave, it says:

The first thing that you need to do to point your domain to your web hosting account is to set your name servers. It is preferred that you use name servers provided by HostGator, although it is possible to use your own.If you use your own, you will need to manually set the DNS Records.

If you use HostGator's name servers, most DNS records you need are generated for you automatically.

So yes, it appears that DNS records are set automatically by HostGator, and you only need to set up DNS stuff if using your own nameservers.

@cyberpunk took a look at my site via PM and said both www. and non www. were resolving for him and that it must be a caching problem at my end, as I still can"t get the non www. version to resolve for me.
 
Last edited:
My site is still not resolving for me without www. in front of it, both work on my phone with and without the www. included.

I've cleared my cache, done start>cmd>ipconfig /flushdns and still getting nothing for the non www. site, it keeps changing the url to domain.co.uk/domain.co.uk :confused:
 
Sounds like your browser is still caching it

You can check if it's working using curl. I just checked your domain and it seems fine.

Code:
root@cyberpunks:~# curl -v -i domain.co.uk > /dev/null

* Connected to domain.co.uk (x.x.x.x) port 80 (#0)
> GET / HTTP/1.1
> Host: domain.co.uk
> User-Agent: curl/7.64.0
> Accept: */*
>
< HTTP/1.1 301 Moved Permanently
< Date: Fri, 17 Apr 2020 11:43:53 GMT
< Server: Apache
< Location: http://www.domain.co.uk/
< Content-Length: 310
< Content-Type: text/html; charset=iso-8859-1
 
@cyberpunk, I don't know what curl is, I'm not very techy, but as you say, it must be caching and not clearing the cache for whatever reason.

@Ben Thomas, tried it on Chrome and it's not working on there either, guessing it's the same caching issue on there, but the non www. works on Edge and Internet Explorer browsers and redirects to the www. version, thanks to all for the help.
 

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Members online

Premium Members

New Threads

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators
General chit-chat
Help Users
  • No one is chatting at the moment.
      There are no messages in the current room.
      Top Bottom