Need to have www in my domain. How can I do that?

I need to keep my site running as But it will not show the www. It just moves to the domain only (

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. :slight_smile:

BACK UP YOUR (.htaccess) FIRST.