PHP: Temporarily disable history logging

Hello:

Is there a way to “turn off” history in PHP (or JS) temporarily for a page and then re-enable for next page?

I’m using echo(‘location.replace(" (URL here) ")’);
Back button history shows 2nd address only,
but Show All History in Mozilla-based browsers is showing both addresses, and I’m exploring workarounds.