• Trying to setup a secure file server using the following format
    example.com/api/files/487s8ash5kask5378s

    i can easily intercept /api/files with template redirects but this doesnt seem to leave me a way to get the key at the end. Any tutorials that i could convert to my use?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    If you use rewrites, either with .htaccess or the Rewrite API, the key can be passed as an URL parameter. Depending on how you are accomplishing template redirects, the original URL may still be available in $_SERVER[‘REQUEST_URI’]. Sorry, I’m unaware of any tutorials, but I expect there are some to be found.

    Thread Starter Daniel Iser

    (@danieliser)

    And the. Just get the query variable from GET. I can deal with that pending a better solution. I know it is doable but am just not aware of what I would search for.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Pretty URL for secure file serving using keys’ is closed to new replies.