Ciao, ho creato un file .htaccess con redirect 301 dal file index del sito vecchio ad una nuova pagina creata ed in locale si verifica questo errore:

--------------------------------------------------------------------------------------------------------------------
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, you@example.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
--------------------------------------------------------------------------------------------------------------------------------------------------------------

Mentre sul dominio il redirect non funziona proprio. Ho provato in tutti i modi ma non ci sono riuscito e su internet non ho trovato nulla di concreto. Cosa ho sbagliato? Come risolvere questo problema, perchè credo che sia proprio il file htaccess a non funzionare, ne in locale ne dal dominio. Ecco come l'ho scritto:


RewriteBase /
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
redirect 301 /index.php hxxp://xxx.sitoesempio.com/en.php