Problema .htaccess su RewriteRule
-
Ciao a tutti,
nelle ultime settimane ho riscontrato un problema di riscrittura sull’.htaccess e più nel dettaglio sul RewriteRule e RewriteBase, che cambiava la url di root e faceva quindi funzionare il sito solo nella cartella scritta in quel punto, riportando Internal server error sulle altre lingue del sito, root compresa.Ecco il file giusto:
# BEGIN WordPress
# The directives (lines) betweenBEGIN WordPress
andEND WordPress
are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>E questo come veniva modificato:
# BEGIN WordPress
# The directives (lines) betweenBEGIN WordPress
andEND WordPress
are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /it/
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /it/index.php [L]
</IfModule>Devo capire come risolvere il problema senza possibilità che possa ripetersi, altrimenti i miei clienti rischiano di trovarsi senza sito raggiungibile.
- Il topic ‘Problema .htaccess su RewriteRule’ è chiuso a nuove risposte.