Announcement

Collapse
No announcement yet.

Opening Images into html using htaccess?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Opening Images into html using htaccess?

    Addhandler Images into php or html
    <hr style="color: black;" size="1"> <!-- / icon and title --> <!-- message --> I know this is possible but cannot find it anywhere how to fix this. I would like to open all of my images into a php or html file using htaccess.

    Following line were placed in htaccess:

    AddHandler headered .jpg
    Action headered /header/header.php

    Then in the header.php, I've placed:
    <?php

    $header = "header.html";
    $footer = "footer.html";

    $image = $_SERVER["PATH_TRANSLATED"];
    readfile($header);
    readfile($image);
    readfile($footer);

    ?>

    But the above is opening images as a file. Please Help. Thanks.
    <!-- / message --><!-- sig --> __________________

  • #2
    Re: Opening Images into html using htaccess?

    Basically this is what I need. All of my gallery images opens up in the browser like this.



    is there a way I can open all images to look like this...



    using htaccess so I don't have to recreate all htmls manually.

    Thank you in advance.

    Comment

    Working...
    X