Redirect main domain to www subdomain

← All Topics
Table of Contents

Paste the following content in a .htaccess file in your domain’s main folder (usually public_html)

#Enable Cloudflare
RewriteEngine on
RewriteCond %{HTTP_HOST} ^yourdomain\.lu
RewriteRule (.*) http://www.yourdomain.lu/$1 [QSA,L]