Nginx
0
Вклад в тег
$request = $_SERVER['REQUEST_URI'];
if (stristr($request, 'index.php?do=/') !== false)
{
$url = str_replace('index.php?do=/', '', $request);
header('Location: ' . $url, true, 301);
exit;
}
error_log /var/www/httpd-logs/site.error.log crit;