My .htaccess file is as follows:
DirectoryIndex index.php
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
RewriteRule . %1/%2 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ index.php?qa-rewrite=$0&%{QUERY_STRING} [L]
RewriteCond %{HTTP_HOST} ^www\.domain\.co\.cc$ [NC]
RewriteRule ^(.*)$ http://domain.co.cc/$1 [L,R=301]
When my website is accessed using the domain.co.cc/ URL it loads. When it is accessed using the www.domain.co.cc URL it does not.
The last two lines of my .htaccess file should redirect users from www.domain.co.cc to the correct domain.co.cc, but it is not working correctly.
Could some help me troubleshoot this?