removed port from rewrite function
First attempt at limiting pages to inside domain only