I am having trouble in removing the “index.php” from the urls and replacing it by the site name. Here are the details:
URL of the website root: http://pinto.vet.uga.edu/
Folder path to the root: /var/www/
I created a .htaccess file in the folder: /var/www/ (I dont know if this is the right place to put it. If not, where do I place the .htaccess file)
Placed this content there:
RewriteEngine On
RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
Then I went to the admin EE control panel : Admin -> General Configuration, and changed the default “Name of your site’s index page” from “index.php” to say “hospital”.
For example, I want the link http://pinto.vet.uga.edu/index.php/ecc/ to look like http://pinto.vet.uga.edu/hospital/ecc/ Curre.ntly, I get the following:
————————————
Not Found
The requested URL /hospital/ecc was not found on this server.
Apache/2.2.17 (Ubuntu) Server at pinto.vet.uga.edu Port 80
————————————
I use MSM and I have multiple sites apart from “hospital” in the server.
I have also tried different other versions of the .htaccess file, nothing seems to work. Any help in this matter would be appreciated.