New to Ubuntu and trying to set-up PHP environment. Now most of the things are set but .htaccess file not working at all for my CMS.
I have two sites /var/www/one/
and /var/www/two/
now when I hit http://localhost/
it is showing me two directories.
Now when I tried to set .htacces
to rewrite the URL it is giving me page not found error. I have tried many things but nothing work. Eventually I found this https://askubuntu.com/a/48363/249945 and when I tried it is giving me Internal Server Error
for the site one
which has .htaccess
file.
Please help me to make it work.. Million.. trillion thanks... :)
Forgot to mention when I try to use above answer solution it is hiding my one
directory if I access http://localhost/
and showing only directory two