Make WordPress upload directory outside wordpress root with custom url
If all you want to do is to have a “cdn” type url, the easiest solution that do not require any programing is to make HostPath/project.dev/cdn a symlink to project.dev/wp-content/uploads. This way for theOS both paths are essentially the same. This should be easy to do if you are in full control of the server … Read more