Question: htaccess how to remove index.php from url?
Answer: To remove the “index. ... 
If you're running Apache, you can do that by creating a redirect in your site's . ... 
Save this inside your .htaccess file:
<IfModule mod_rewrite.c>
RewriteEngine On.
# Send would-be 404 requests to Craft.
RewriteCond %{REQUEST_FILENAME} !-f.
RewriteCond %{REQUEST_FILENAME} !-d.