Forum Moderators: phranque

Message Too Old, No Replies

is this possible to do?

please read and input

         

StuntasticAudi

10:16 pm on Aug 2, 2006 (gmt 0)

10+ Year Member



I have a image hosting script thats in php. When users upload photos they get a URL link for each photo so they can go and share it with friends or whatever. Kind of like photobucketdotcom.

Now my problem is that the image's URL link is in php format. ex. www.sitename.com/pic.php?u=blahblah

I want the URL to be in the .jpg or .gif format
ex. www.sitename.com/images/image1.jpg

i dont want the link to be in php
is there a way to change anything in the .htaccess file that will do that for me?

jdMorgan

3:06 pm on Aug 3, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you want to change the links on your pages, you must modify the script.

Then use mod_rewrite (or another modification to the script) to convert these friendly image URLs back to the form needed to call the script.

This thread [webmasterworld.com] and several others in the Apache forum section of the WebmasterWorld library [webmasterworld.com] discusses the subject in detail.

Jim