Ciao a tutti
gentilmente una domanda per voi
Come mai, anche se ho applicato queste regole su Laravel:
stackoverflow.com/questions/23837933/how-can-i-remove-public-index-php-in-the-url-generated-laravel
Appaiono su google urls ancora con "index.php/", generando dei duplicati?
Ad esempio appare:
http://www.pippo.com/index.php/it/nome.prodotto.html
mentre dovrebbe essere:
http://www.pippo.com/it/nome.prodotto.html
ossia senza "index.php/"
Ecco il contenuto del file htaccess:
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
RewriteRule ^/(.*)$ /index.php?$1
# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
Come posso fare per non mostrare questi links a Google?
Saluti e buon lavoro![]()