htaccess - GIF to a PHP file

Discussion in 'Apache' started by lbalance, Apr 4, 2007.

  1. #1
    I made a PHP script that dynamically adds text to an image and displays it as a GIF. When you go to the url of the PHP file, it looks good. I can even link it in an <img src>.

    My problem is that myspace filters out "php" and wont allow me to put this image on my profile.

    I thought htaccess would be the best bet.
    I dropped this into the .htaccess file of that directory:
    Options +Indexes
    Options +FollowSymlinks
    RewriteEngine on
    RewriteBase /
    RewriteRule ^banner.gif$ banner.php
    Code (markup):
    Its not showing an image when I go to banner.gif. I am getting a file not found instead.

    Any suggestions?
     
    lbalance, Apr 4, 2007 IP
  2. lbalance

    lbalance Peon

    Messages:
    381
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #2
    fixed it by adding this:
    [R=301,L]


    thanks anyways
     
    lbalance, Apr 4, 2007 IP