I need to keep my site running as www.sandpipersresort.com. But it will not show the www. It just moves to the domain only (https://sandpipersresort.com).
Is there any way to change this to make the www the main url?
I need to keep my site running as www.sandpipersresort.com. But it will not show the www. It just moves to the domain only (https://sandpipersresort.com).
Is there any way to change this to make the www the main url?
You just need to insert this into your .htaccess
# Redirect non-www URLs to www
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www. [NC]
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
Or you can use Cyberpanel’s own feature:
Websites > List Websites > Your Site > MANAGE > CONFIGURATIONS:
But be careful not to replace or remove a fundamental rule for your application to work, since I don’t know what application or system you are configuring.
BACK UP YOUR (.htaccess) FIRST.