cleaned up some php. htaccess is only place for pathing now.