WordPress.org

Forums

The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Override Permalinks on individual pages? (2 posts)

  1. swcomm
    Member
    Posted 5 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 5 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