htaccess problem

Posted by rohit on Server Fault See other posts from Server Fault or by rohit
Published on 2011-06-24T14:55:11Z Indexed on 2011/06/24 16:24 UTC
Read the original article Hit count: 215

Filed under:

my htaccess file is belkow

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 i write www.domain.co.cc it's not working while i write just domain.co.cc/ it's working fine please help me out with www stuff . i have added last two lines so that when user write www.domain.co.cc it will redirect to domain.co.cc but still it not working.

© Server Fault or respective owner

Related posts about .htaccess