changing path to external and internal url