Viewing 1 replies (of 1 total)
  • It’s not possible out of the box. The reason for this is that your pages URL is dynamic and doesn’t actually exist, so there’s no easy way to reference anything past that.

    The two ways that come to mind now are either easy, or hard.

    The wasy way…

    Install a 301-redirect plugin and use that to redirect from https://www.site.com/mypage/mypdf to https://www.site.com/wp-content/uploads/2014/7/my.pdf

    The hard way…

    Create your own plugin and use the rewriting and URL hooks to determine if there’s a valid file attached to the requested page if there’s a 404 Not Found page requested. It’s a whole lot more work, but it’s possible to do if you spend the time looking at it.

Viewing 1 replies (of 1 total)
  • The topic ‘Media file URL on parent page’ is closed to new replies.