Am wondering how to remove index.php from URLs, every link on my site has index.php in it, for e.g. example.com/index.php/contact-us.
Am using Drupal 8, my server is Apache and php version is 5.6, and am on Shared Hosting.
In the .htaccess file i tried to use
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]
That removed the index.php but any new article wont show the images in the homepage(index.php)
then i tried to use
RewriteBase /
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]
Same thing happened.
Please advice