Hi,
I'm trying to rename a certain file with a .php extension to a .jpg. How would I do this using a .htaccess file? This is what I want the URL to be changed FROM:
http://www.johninteractive.net/photos/imagedisplay.php?id=3
To this:
http://www.johninteractive.net/photos/13.jpg
How would I do this by using .htaccess file? I tried using another example but I got a HTTP 404 error.
SORRY IF YAHOO! CUTS OFF THE URLs. If this happens, just click on the link to see what I mean. Thanks a lot!
2007-07-06
15:11:32
·
7 answers
·
asked by
John1704
3
in
Computers & Internet
➔ Programming & Design
I know it's possible. I want it to show as a .jpg image, with php scripts in it, but disguised as a .jpg file. The forum I'm using does not accept .php files for security purposes, so I need to create someway to so that when someone makes a request for a .jpg file, it makes it go to the php file instead. I figured I could do it with a .htaccess file, and apparently, I was right. Using the rewrite rule you can do it, I just didn't know how.
2007-07-07
02:35:54 ·
update #1