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>