image - .htaccess rewrite url - show html file as jpg -
i have image.html , want shown in browser image.jpg, because there operations when showing picture, can't done before or after. possible .htaccess , url rewriting? i tried rewriteengine on rewritebase / rewriterule ^image\.html$ image.jpg but without luck. thanks answers first of all, you'll need let's php script. call image.php . after that, use parameter handle image name. let's call name . call picture need image.php?name=allo . now. in php script, need specify in header it's image, jpeg. required. after that, "print" picture within page. all need after rewrite rule. rewriteengine on rewritebase / rewriterule ^image\.php?name=(.*)$ /images_jpeg/$1 the header important. why doesn't work html file.