Code:
RewriteEngine on RewriteRule (.*)\.(htm|shtm|shtml)$ $1.html # Pfad möglicherweise anpassen! RewriteRule ^(.*)-(.*).html$ /index.php?section=$1&lang=$2 [QSA]
PHP-Code:
<?php
echo (!isset($_GET['section']) ? 'Section has not been set!' . '<br>' : $_GET['section'] . '<br>');
echo (!isset($_GET['lang']) ? 'Language has not been set!' . '<br>' : $_GET['lang'] . '<br>');
echo (!isset($_GET['to']) ? 'To has not been set!' . '<br>' : $_GET['to'] . '<br>');
Code:
startseite de appendedQuery
Kommentar