Click here to Skip to main content
15,894,405 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am running a php project on IIS server in which i included the
isset($_GET['url'])
method but its not redirecting the right location which caused only same result 404 page not found!
wherever the same code is working fine on apache server.
How do i solve this issue.

What I have tried:

<?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>
Posted
Updated 22-Nov-18 22:05pm
v2
Comments
ZurdoDev 29-Nov-18 15:40pm    
Fix the url.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900