PDA

View Full Version : .htaccess Puzzled



iGoD ReLeNtLeS
09-04-11, 03:55
Well im still a bit of a newb at htaccess. I've done simple stuff like redirect and no external linking as well as mod_rewrite on file extension, but when it comes to php vars and the like, im confused as hell.

http://www.whiteskillers.co.uk/signatures/index.php?rsn=iWader&c=8&bg=0

Could someone explain the ropes to me for this image? I have quite a few files to do so if anyone has a decent tutorial or would explain, that would be a great help.

Basically i would like the outcome to be /signatures/c/bg/iWader.png (where c and bg are placed with the value)

many thanks, iGoD. :thumb:

EDIT:

c is a range from 0 - 8 for text colour
bg is a range from 0 - 30 for background image
rsn is a string of upto 12 characters.

DoubleTop
09-04-11, 08:40
ermm, can't see what that has to do with htaccess at all.

the rsn, c & bg are php vars to a script that is doing the work, not htaccess.

iGoD ReLeNtLeS
09-04-11, 11:29
hmm, it was my understanding that mod_rewrite was used in such circumstances. How would you go about doing such a thing, anyway?

Toonshorty
09-04-11, 11:54
Trying to make yourself a RuneScape signature are we ;)

Isn't this done through PHP Dynamic Images.

DoubleTop
09-04-11, 13:24
I have no idea ;) ....
http://runetrack.com/sigs/stat/ffdn/pose/0/Tpr_Dt.png (http://runetrack.com/profile.php?user=Tpr_Dt)

DT.

Toonshorty
09-04-11, 13:27
I have no idea ;) ....
http://runetrack.com/sigs/stat/ffdn/pose/0/Tpr_Dt.png (http://runetrack.com/profile.php?user=Tpr_Dt)

DT.

Problem?

http://www.draynor.net/stat/space/male/hd_slayer_helm/Toonshorty_X.png

DoubleTop
09-04-11, 13:33
point proven, there are so many out there already with some hunting down a script will be out there :)

heavywater
09-04-11, 13:50
Yup, it's done through GD, the same way the Steam sigs we did in the other thread were. Peter should be able to help with the mod_rewrite side of things. :)

iGoD ReLeNtLeS
11-04-11, 01:11
hmm after some long and hard googling (as i didnt really know what to google/what to call this) i finally found what i was looking for.

Got it working as such :thumb:http://www.whiteskillers.co.uk/signatures/images/0/10/iWader.png

http://www.whiteskillers.co.uk/signatures/images/0/10/iWader.png

heres the mod_rewrite rule i used.


RewriteRule ^images/([0-8]+)/([0-30]+)/(.*)\.png$ index.php?c=$1&bg=$2&rsn=$3