I know this question has come up many times before, although after reading and trying dozens of answers, I am none the wiser. I am currently rebuilding my website with Ubuntu 16.04, PHP7 and apache. And what worked flawlessly on my old site (Ubuntu 14) is now not, and I cannot hide the index.php within the URL without the site crashing. This of course breaks any links to finish the craft completion and therefore is not operational. Here is my .htaccess file:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
# Send would-be 404 requests to Craft
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/(favicon\.ico|apple-touch-icon.*\.png)$ [$
RewriteRule (.+) index.php?p=$1 [QSA,L]
</IfModule>
I have entered garbage within the .htaccess and am not receiving any change, therefore I presume it is an issue with this. The .hta is within my web route of /var/www/public_html, which is indexed correctly withing the apache config.
I've edited apache config to allow overriding:
<Directory />
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
I've also made sure that omitting script names is enabled:
'*' => array( // production by default
'siteName' => '*****',
'omitScriptNameInUrls' => true,
'siteUrl' => 'http://' . $_SERVER['SERVER_NAME'] . '/',
'timezone' => 'Europe/London',
'allowAutoUpdates' => true,
'cpTrigger' => 'mgmt',
'rememberUsernameDuration' => false,
)
Sigh If anybody could suggest anything else, it would be very much appreciated!