Muhammad Usman
Muhammad Usman

Reputation: 10946

.htaccess not working on linux

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 ...

Upvotes: 3

Views: 2289

Answers (2)

Youn Elan
Youn Elan

Reputation: 2452

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

Upvotes: 5

karthzDIGI
karthzDIGI

Reputation: 403

Make sure that module 'mod_rewrite' is loaded in your server. To check this use phpinfo() and then search for 'loaded modules'.

Upvotes: 1

Related Questions