2

I have a go daddy site with the following records

CNAME | www | example.co.uk.

A | @ | 142.155.154.42

A | example.co.uk | 12.197.141.173

A | example.co.uk | 3.37.151.147

Along with the Forwarding section set up like follows:

Domain

  • Empty

Subdomain

  • example.co.uk - containing Permanent 301 https://www.example.co.uk

When I visit https://www.example.co.uk I get the following screen:

this page isn't working

When I visit https://example.co.uk I get the redirect I want just fine.

I want to be able to visit https://www.example.co.uk and be redirected to the root which sits at https://example.co.uk. Can someone tell me what I'm doing wrong here?

5
  • Can you show us the contents of your .htaccess file?
    – Steve
    Commented Jan 25, 2022 at 3:42
  • The only .htaccess file I have access to is the wordpress one and it is currently empty. @Steve
    – cwiggo
    Commented Jan 25, 2022 at 13:55
  • The WordPress .htaccess should never be empty otherwise permalinks won't work.
    – Steve
    Commented Jan 25, 2022 at 22:41
  • 1
    In fact it's not empty as I use a module called PageNinja that automatically adds .htaccess entries from within the module config.
    – cwiggo
    Commented Jan 25, 2022 at 23:02
  • 1
    @steve My servers code the "Wordpress" .htaccess guff in the Virtualhost config by default for my clients.
    – davidgo
    Commented Jan 25, 2022 at 23:22

1 Answer 1

2

It looks like you are redirecting www.example.co.uk to itself, so it gets into a redirect loop.

This is exactly consistent with what you wrote: Subdomain

      example.co.uk - containing Permanent 301 https://***www.***example.co.uk

Surely the www. should not be there? That said, you have not provided enough information to know why/how example.co.uk is redirecting - which it would appear but shouldn't be in this scenario.

Maybe what you are trying to do is redirect https://example.com to https://www.example.com in which case you should set up the redirect on the Domain, not the Subdomain.

2
  • Within my web host provider, I have one redirect, a 301 pointing from abc.co.uk to https://abc.co.uk. This and the DNS setup is the only configuration I have. Is that enough information to explain why it's redirecting as it is? I'm going to wait for a couple of hours and try your suggested change. Removing the Forwarding Section Subdomain redirect and placing the exact same redirect in the Domain Forwarding Section instead.
    – cwiggo
    Commented Jan 25, 2022 at 20:38
  • Do your http and https point to the same resource? If thats thr case (and its a fairly common one) you need to make your redirect conditional on the site being http as well. Does Godaddy honour .htaccess files?
    – davidgo
    Commented Jan 25, 2022 at 23:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.