¿Cómo actualizar la página en el botón de atrás hacer clic?
Utilizo .htaccess para enrutar todo mi tráfico a un solo archivo index.php. El código a continuación dirige el tráfico, pero por alguna razón no funciona con el botón Atrás. No sé qué hacer para que el botón Atrás funcione. He probado una variedad de cosas y he buscado en Google bastante y nada de eso ha funcionado, ¡así que espero que alguien aquí pueda ayudar!
<?php
if(isset($_GET['parameters'])) {
if($_GET['parameters'] == "repair")
include 'repair.html';
else if($_GET['parameters'] == "training")
include 'training.html';
else if($_GET['parameters'] == "products")
include 'products.html';
else if($_GET['parameters'] == "about")
include 'about.html';
else if($_GET['parameters'] == "employees")
include 'employees.html';
else if($_GET['parameters'] == "training")
include 'training.html';
else if($_GET['parameters'] == "newaccount")
include 'newaccount.html';
else if($_GET['parameters'] == "contact")
include 'contact.html';
else if($_GET['parameters'] == "recommended")
include 'recommended.html';
else if($_GET['parameters'] == "careers")
include 'careers.html';
else
include 'home.html';
}
else
include 'home.html';
?>
Hasta ahora he intentado y no he usado:window.onbeforeunload
body onunload=""
Tiene que haber una manera deonunload=location.reload()
¡o algo! De alguna manera hay que conocer la sintaxis !!