I’d prefer to use the www.example.com subdomain instead of the main domain. How can I set this up?
Error message: Please do not include the www. prefix on a domain name.
Add the base domain, the www subdomain is automatically created.
Then just redirect the base domain to the www subdomain with htaccess.
6 Likes
Hello there, like @Greenreader9 told you can add it using .htaccess
here’s the code
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [L,R=301]
6 Likes
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.