[ad_1]
Hi everybody.
I want a clean link to a pdf on my website, right now it’s
[https://mydomain.com/wp-content/uploads/myfilename.pdf](https://mydomain.com/wp-content/uploads/myfilename.pdf)
I want the URL to be
[https://mydomain.com/myfilename.pdf](https://mydomain.com/myfilename.pdf)
​
Any ideas if I add the file via FTP to the /public\_html folder it will work? will it break anything?
[ad_2]
It will be fine.
It will work fine, but if you plan to do this for many files you’re going to create one big mess of files in a place where they’re not meant to be stored (sure, technically anything can be stored anywhere but it’s not very good practice).
You also won’t be able to manage these files within the WordPress media library if they’re uploaded via FTP.
Totally fine to do it and it’ll work for what you’ve described.
If you wanted to get fancy you could setup a rewrite rule that maps /pdf/* routes to PDF uploads in your media library. That would allow you to upload within WP instead of FTP every time.
It will work. It will not break anything. You will have to specify the URL when linking to it.
By doing this outside of WordPress you are creating extra complexity. Is there a reason you’re wanting to do it this way?