htaccess rewrite - 500 credits

Status
Not open for further replies.

Christopher

Retired
Messages
14,659
Reaction score
8
Points
0
i need some htaccess code which does this

http://sigchat.fyepro.com/sigs/<user>.jpeg would not redirect but display http://sigchat.fyepro.com/image.php?user=<user>
<user> is a variable

I will pay 500 credits for it.
 
Last edited:

TechAsh

Retired
Messages
5,853
Reaction score
7
Points
38
Try this:
Code:
RewriteEngine On
RewriteRule ^sigs/([0-9]+)\.jpeg$ /image.php\?user=$1 [NC,L]
NOTE: If the variable contains only letters instead of only numbers change ([0-9]+) to ([a-z]+). If the variable contains both letters and numbers change ([0-9]+) to ([a-z0-9]+)

Post back if it doesn't work, I may have made a typo.
 
Last edited:

TechAsh

Retired
Messages
5,853
Reaction score
7
Points
38
Thanks, I've just noticed that I've received the credits.

I guess this can be closed now.
 
Status
Not open for further replies.
Top