I used task-lamp to install my webserver. I've since installed and built a joomla site at: /var/www/html/thisdirectory
The site works fine. I was polishing it up, and trying to get rid of "index.php" in the urls. So, as tutorials all over the place show, I've done the following:
A: Renamed /var/www/html/thisdirectory/htaccess.txt to /var/www/html/thisdirectory/.htaccess
B: In the joomla back end set both 'search engine friendly url's" and "use url rewriting" to yes
But it's not working as planned: I suspect it's because I've got the site set in a sub directory of the webserver root.
If I go to the web page:
localhost/thisdirectory/index.php/thispage
the page is displayed, but if I go to (using links from the home page which displays fine)
localhost/thisdirectory/thispage
It 404's
I've seen a couple of suggestions:
Edit httpd.conf
Edit .htaccess
I believe that editing httpd.conf is more efficient. This site will be uploaded to a webhost, so editing .htaccess may mean issues when I upload it.
Open to all ideas of how to sort this out.