Gaurav Saini Ответов: 0

Я не могу перенаправить PHP страницу на сервер IIS как мне это сделать пока она нормально работает на apache


Я запускаю php-проект на сервере IIS, в который я включил
isset($_GET['url'])
метод, но его не перенаправление в нужное место, которое вызвало только тот же результат 404 страница не найдена!
везде, где один и тот же код прекрасно работает на сервере apache.
Как мне решить эту проблему?

Что я уже пробовал:

<?php include('../connect.php'); 
if(isset($_GET['url']) && ($_GET['url']!='')) 
{ 
$url=trim($_GET['url']);
}
?>
<!DOCTYPE html>
<html lang="zxx">
<head>
<title>Account | Ebasq</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" />

<style>
.checkout-right h4 {
    color: #000 !important;
    font-size:17px !important;
    margin-bottom: 30px !important;
}
</style>
<?php include('../files/include/files.php'); ?>	

<body>
<?php include('../files/include/top-line.php'); ?>	
<?php include('header.php'); ?>
<?php if($url=="password"){ ?>
<?php include('change-password.php'); } ?>
<?php if($url=="order-history"){ ?>
<?php include('order-history.php'); }?>
<?php if($url==""){ ?>
<?php include('data.php'); ?>
<?php } ?>
<?php include('../files/include/footer-account.php'); ?>	
<?php include('../files/include/footer-files.php'); ?>	
</body>
</html>

ZurdoDev

Исправьте url-адрес.

0 Ответов