I am trying to use an .htaccess file on my server to redirect www. requests to a URL without www..
I have made the .htaccess with htpasswd on my CentOS 5.8 server with the required 301 redirect line in it although it does not work.
I think the redirect does not work because it is not using the htaccess file at all i.e. I try to add junk to the htaccess to test if it is in use (website would not work with junk), and nothing happens.
Please suggest how I solve this or any more information that you require.