Added permanent redirect io code