> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.serverfreak.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to Redirect non-www to www by using .htaccess?

Open or create a new file .htaccess in public_html folder with content as sample below:

**Options +FollowSymLinks **
**RewriteEngine on **
**RewriteCond %{HTTP_HOST} ^yourdomain.com [NC] **
**RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [L,R=301]**


|| NOTE: Replace yourdomain.com with your own domain name