url rewriting - I am looking to re-write a specific URl with php -
i using php script change download link "http://mydomain.com/get.php?download/" looking further change show "/get.php?download/ or more specific "?php" on web page button holds link.
here code:
<?php $path = 'folder/blank.file/'; $mm_type="application/octet-stream"; header("pragma: public"); header("expires: 0"); header("cache-control: must-revalidate, post-check=0, pre-check=0"); header("cache-control: public"); header("content-description: file transfer"); header("content-type: " . $mm_type); header("content-length: " .(string)(filesize($path)) ); header('content-disposition: attachment; filename="'.basename($path).'"'); header("content-transfer-encoding: binary\n"); readfile($path); //output exit(); ?>
how possible? help!
edit: using lighttpd , invision power board.
i dont know if have made (its old question )... have may help.
to rewrite, in ipb can change core files ... take in here:
{forum-root}/admin/applications_addon/ips/downloads/extensions/furltemplates.php
in "idmdodownload" take in row:
'out' => array( '/app=downloads(&|&)module=display(&|&)section=download(&|&)do=do_download(&|&)id=(.+?)(&|$)/i', 'files/download/$5-#{__title__}/$6' ),
you can rewrite , think can want ...
take @ ->my post rewriting in ipb
Comments
Post a Comment