change URL to DIR