omg now this is really wierd, i tried the .htaccess on the test site hosted locally and it worked but it isnt working with the site hosted on my linux server!
alright checked the apache logs and it was some kinda directive error so this is what i changed and it works.
anyone who has problem getting it to work, try this:
Code:
1) check that /etc/http/conf/httpd.conf "Allowoverride is set to "All"
Eg: AllowOverride All
2) open /etc/httpd/conf.d/welcome.conf
locate "Options -Indexes"
replace with "Options Indexes"
&& thanks daffy :)