.htaccess not working on linux

.htaccess, linux, php, windows

Solution

make sure that AllowOverride is enabled (AllowOverride all) in httpd.conf (many distribs have default as none)

if it is not that, you may have to post the actual htaccess for more help

Problem

I have defined some URL Rewriting rules in .htaccess file Its working fine on localhost in windows But when I uploaded it on server that is linux based, it stopped to work I have found the problem on this link Files and directory names starting with a dot are treated as hidden files by Unix, Linux & Mac. The htaccess file is hidden so it doesn’t distract from normal web content like HTML files. See hidden files for more information. Without the dot at the beginning, Apache will ignore the htaccess file. But I did not find the solution ...

Original source