|
|
|
#1 (permalink) |
|
Programmer
|
I have a php page that spits out a PNG image based on the $_GET U variable.
Here is what a normal url to one of the images looks like: http://site.com/imagedir/?u=1647576785 I would like it to be accesible via: http://site.com/imagedir/1647576785.png with my .htaccess file. Thanks. |
|
|
|
|
#2 (permalink) | ||||||||||||||
|
ATI Enthusiast
|
You need the name of the PHP file in the normal URL for this to work. Just change imagefile to the name of the file, and put this in an .htaccess file in the directory you want it to be used in.
Code:
Options +FollowSymLinks Options +Indexes RewriteEngine On RewriteRule (.*).png imagefile.php?u=$1 [QSA]
__________________
Quote:
|
||||||||||||||
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|