neither works right rewrites them but creates issues viewing pages after 1