So I have been trying to remove the index.php from my url and haven't been successful
I have tried these methods
.htaccess
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]
javascript
window.location.href.replace('index.php', '');
my url looks like this still www.example.com/index.php
My site works if I go to www.example.com and loads in the index.php and won't show it, thats normal behavior. But if I type in it in with the /index.php the js or htaccess won't erase and just show www.example.com
I'm not sure what to try....