Gaurav Saini

Gaurav Saini

  • NA
  • 150
  • 624

I am unable to redirect PHP page on IIS server how do I do

Nov 23 2018 3:13 AM
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:
  1. <?php include('../connect.php');  
  2. if(isset($_GET['url']) && ($_GET['url']!=''))  
  3. {  
  4. $url=trim($_GET['url']);  
  5. }  
  6. ?>  
  7. <!DOCTYPE html>  
  8. <html lang="zxx">  
  9. <head>  
  10. <title>Account | Ebasq</title>  
  11. <meta name="viewport" content="width=device-width, initial-scale=1">  
  12. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
  13. <meta name="keywords" content="" />  
  14. <style>  
  15. .checkout-right h4  
  16. { color: #000 !important; font-size:17px !important; margin-bottom: 30px !important; } </style>  
  17. <?php include('../files/include/files.php'); ?>  
  18. <body>  
  19. <?php include('../files/include/top-line.php'); ?>  
  20. <?php include('header.php'); ?>  
  21. <?php if($url=="password")  
  22. {  
  23. ?>  
  24. <?php include('change-password.php'); } ?>  
  25. <?php if($url=="order-history")  
  26. {  
  27. ?>  
  28. <?php include('order-history.php'); }?>  
  29. <?php if($url=="")  
  30. {  
  31. ?>  
  32. <?php include('data.php'); ?>  
  33. <?php  
  34. }  
  35. ?>  
  36. <?php include('../files/include/footer-account.php'); ?>  
  37. <?php include('../files/include/footer-files.php'); ?>  
  38. </body>  
  39. </html>