Cloud website issue

Need some help with a website.

www.sell247.co.uk and sell247.co.uk (without the www)

How do I make both urls point to the same index page?

This might point you in the right direction:

Can also be done via CNAME record in the DNS.

1 Like

without knowing if it’s hosted on BSS’s free hosting or if you’re hosting it somewhere else it’s a bit hard to know what to tell you … so …

If you’re hosting it yourself on some other server that has access to a cPanel, you can also just forward the domain that doesn’t contain the website to the website. Check your cPanel if you have one and look for Domain Forwarding or something similar.

If hosting with BSS’s hosting, then I would follow the previous posters :slight_smile:

You can use Cloudflare’s page rules to forward.
Set https://sell247.co.uk to forward to https://www.sell247.co.uk
you may have to host on a www. version and normal version if hosting on Bootstrap Studio

I did everything directly through cloudflare and uploaded the compressed files.
In my case I needed to configure the DNS, it was as shown in the image below.

Redirect in .htaccess file
Conditional addresses of sites and pages are indicated - you will need to replace them with yours.

  1. Website redirect from WWW to non-WWW

RewriteCond %{HTTP_HOST} ^www…your-site.com$ [NC]
RewriteRule ^(.*)$ http://your-site.com/$1 [R=301,L]

2, Redirect site without WWW to URL with WWW:

RewriteCond %{HTTP_HOST} ^your-site.com [NC]
RewriteRule ^(.*)$ http://www.your-site.com/$1 [L,R=301,NC]

1 Like