There are links to PDF files on a website that I am supposed to transfer into WordPress with a URL like http://www.example.com/directory/filename.asp?file=/ftp/directory/file.pdf. I am supposed to keep all URLs exactly the same. Is this possible?
There are three ways that I can think of to do this. One is to make a page in WordPress that would store filename.asp. I’d probably also have to install a plugin that would run ASP files. However, I’d have to put the PDF file at the URL /ftp/directory/file.pdf on a domain that has WordPress installed on it, which I’m not sure is possible.
The second way I can think of to do this is to FTP the filename.asp file onto the server that runs WordPress, but I don’t know what directory I’d put it in so that the Internet browser will access it when a user visits http://www.example.com/directory/filename.asp.
The third way I can think is to put filename.asp on a page on the WordPress site, and then edit that file so that when it receives file=/ftp/directory/file.pdf, it will download the file at /uploads/2012/08/file.pdf. This doesn’t seem like good practice, but it also seems like the most likely way to work.
In short, is it possible to make a PDF file accessible on a URL like http://www.example.com/directory/filename.asp?file=/ftp/directory/file.pdf when WordPress is installed on the domain?
- The topic ‘PDF file at a specific URL’ is closed to new replies.