I have small problem.
I create redirect for my domain from non-www to www. Anything work fine but after redirect I got index file ( app.php ) and i don't know why.
My htaccess
DirectoryIndex app.php
RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} !^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
For example, If I type www.example.com -> it's ok If I type example.com -> redirect www.example.com/app.php
How Can I remove app.php?