add media directory, change urls and settings