better handling of url variations; using "replace" to drop history recor...

...d of redirect