Hi All, my site is hosted on apache server. I was trying to redirect (301) the non www version of my website to www. The code i was using in my .htaccess file was:
RewriteEngine On
rewritecond %{http_host} ^domain.com
rewriterule ^(.*)$ [
domain.com...] [r=301,L]
I have tried the same code earlier on my other websites and it had worked bt now its not working. When I upload htaccess file with above code, i get an 500 Internal Server Error.Can you people suggest any thing.
One more thing that i have found that there are around 5-6 .htaccess file in various folders like vti_log, vti_cnf and others with code:
# -FrontPage-
IndexIgnore .htaccess */.?* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName domain.com
AuthUserFile /home/folder/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/folder/public_html/_vti_pvt/service.grp
Does this code have anything to do with my problem and what the above code mean. Please help.