Scoochi2
New Member
- Messages
- 185
- Reaction score
- 0
- Points
- 0
Hey, I'm pretty much a newb when it comes to .htaccess, so I hope someone out there can clarify something for me.
I have a PHP file that will spew out a png image, but due to forums not allowing dynamic images, I need to fool them by loading a png image which is redirected to my PHP file. This I can do.
However, the image is different, dependent on a $_GET in my PHP.
In short, I need to redirect from
http://mydomain/folder/xxxx.png to http://mydomain/folder/image.php?text=xxxx
I thought I could do it the following way (.htaccess file in top level). Could somebody clarify for me that this is correct, or if not, any other thoughts?
I have a PHP file that will spew out a png image, but due to forums not allowing dynamic images, I need to fool them by loading a png image which is redirected to my PHP file. This I can do.
However, the image is different, dependent on a $_GET in my PHP.
In short, I need to redirect from
http://mydomain/folder/xxxx.png to http://mydomain/folder/image.php?text=xxxx
I thought I could do it the following way (.htaccess file in top level). Could somebody clarify for me that this is correct, or if not, any other thoughts?
Code:
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^folder/([^/]+).png /folder/image.php?text=$1 [NC]