.jpg like .html - .htaccess?

Discussion in 'Site & Server Administration' started by Magik, Mar 30, 2011.

  1. #1
    Hello, let my explain my problem.

    I have a directory with files:
    1.html, 2.html, 3.html .... 100.html
    1.jpg, 2.jpg, 3.jpg...100.jpg

    When you hit one of that html files for example 23.html you see my website header, menu, ads and 23.jpg.

    Now someone is sending (not hotlinking) traffic direct to one of that .jpg file not .html. I do not want to lost that traffic but I want send them to website right?

    So Im trying to find the way of displaying html in .jpg files...

    I know I can do it with that code in .htaccess:

    RemoveHandler .html .htm
    AddType application/x-httpd-php .jpg
    Code (markup):
    BUT this will change each and every .jpg into .html in directory, but I want to change only one...

    Anyone know how to do this?
     
    Magik, Mar 30, 2011 IP