I recently hosted a small website with the latest Laravel 4. Everything works well, including correspondence.
But I noticed that Google indexed several URLs with index.php in the path. As you know, this can cause a problem with duplicate content.
I checked three times and there is absolutely no way to access the URL from index.php while browsing the website. So I'm wondering how to prevent the URL loading framework using index.php or at least the trick to automatically redirect to the correct URL without index.php .
In the original htaccess, I just added this to force www in the url:
RewriteCond %{HTTP_HOST} ^domain\.com [NC] RewriteRule ^(.*)$ http://www.domain.com/ [L,R=301]
I do not think this is the cause of this problem, but I mention it just in case.
Thanks.
source share