WordPress.org

Ready to get started?Download WordPress

Forums

Override Permalinks on individual pages? (2 posts)

  1. swcomm
    Member
    Posted 3 years ago #

    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.

  2. swcomm
    Member
    Posted 3 years ago #

    Gosh, I sure do love wordpress. I fixed this myself by adding <base href="http://www.mysite.com/"> in the template header used for these pages. That does exactly what I need it to do, with no messing around with the permalinks at all.

Topic Closed

This topic has been closed to new replies.

About this Topic