Within my site, I have a couple of password protected pages that use PHP to dump out a linked list of contents in an FTP folder that exists outside the WordPress installation, but on the same server. The URLs that the PHP script spits out are the correct URLs to the file locations in the FTP folder, but WP is inserting my permalink URL in front of the correct URL and breaking the links. Is there some way I can override the permalink URLs within these few pages? Example:
Correct URL:
http://www.mysite.com/ftpfolder/document.pdf
Messed up Permalink URL:
http://www.mysite.com/permalink/ftpfolder/document.pdf
Thanks.