Dale_G Posted December 23, 2007 Share Posted December 23, 2007 Hey everyone. Let's say I have a php file at www.mysite.com/image.php. This PHP file generates an image. So using this code <img src="www.mysite.com/image.php"> the image would show up. The site this is going on has some sort of restriction and all IMG tags must end with a .png, .gif, etc. So I need to be able to use this code <img src="www.mysite.com/image.png"> yet retrieve image.php. So basically I need to know how to rewrite image.PNG to image.PHP using .htaccess Thanks! Quote Link to comment Share on other sites More sharing options...
trq Posted December 26, 2007 Share Posted December 26, 2007 RewriteRule image.png image.php [L] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.