<?php
// Detect the protocol (http or https)
$protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ? 'https' : 'http';

// Get the current domain (host)
$domain = $_SERVER['HTTP_HOST'];

// Specify the folder path to redirect to (make sure it starts with a slash)
$folderPath = '/fx/live/'; // Change '/your-folder/' to your desired folder path

// Build the full URL
$url = $protocol . '://' . $domain . $folderPath;

// Redirect to the constructed URL
header("Location: $url");
exit();
?>

