better handling of url variations; using "replace" to drop history record of redirect