We have specific links on a domain that need to be redirected to a single php page, which will then parse the URL to generate the src attribute of an iframe.
An example of a link is http://domain.com/preview/123456789/0987654321/filename-goes-here.ext
My thoughts are to use htaccess to redirect ALL requests to http://domain.com/preview/ to a single file containing the iframe -- suggestions are welcomed ! :)
That single file would then need to parse the URL to create the src attribute for the iframe.
So, using the example link above, the iframes src would be:
So, any request for links beginning with http://domain.com/preview/
will open one specific file via htaccess rule
and that file needs to parse the URL - AFTER the /preview/ piece to build its src attribute for the iframe within it.