Inserisci un codice come questo all'inizio del tuo index.php:
Codice PHP:
if (isset($_SERVER['REDIRECT_URL']) ||
isset($_SERVER['HTTP_X_ORIGINAL_URL']) ||
isset($_SERVER['HTTP_X_REWRITE_URL'])) {
if (isset($_GET['mod'])) {
header('Location: http://' . $_SERVER['HTTP_HOST'] . '/' . $_GET['mod'] . '.html');
exit();
}
}