hmmm ... made a Snippet with the following code and placed it on the site start (home page):
<?php
$home='1';
$news='12';
$kontakt='7';
switch($_GET['open']) {
case 'home' :
$modx->sendRedirect($modx->makeUrl($home), 0, 'REDIRECT_HEADER', 'HTTP/1.1 301 Moved Permanently');
break;
case 'aktuelles' :
$modx->sendRedirect($modx->makeUrl($news), 0, 'REDIRECT_HEADER', 'HTTP/1.1 301 Moved Permanently');
break;
case 'kontakt' :
$modx->sendRedirect($modx->makeUrl($kontakt), 0, 'REDIRECT_HEADER', 'HTTP/1.1 301 Moved Permanently');
break;
}
?>..it’s working, but is this legit? anything i should change? is it secure?
thanks, j