Proper URL mapping for both web and api pages