Cloud website issue

Need some help with a website. and (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 to forward to
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…$ [NC]
RewriteRule ^(.*)$$1 [R=301,L]

2, Redirect site without WWW to URL with WWW:

RewriteCond %{HTTP_HOST} ^ [NC]
RewriteRule ^(.*)$$1 [L,R=301,NC]

1 Like