adding base url dependent on server variable
updating urls and htaccess