PDA

View Full Version : .htaccess Help



Invent
14-02-2007, 10:06 PM
Hey.

I need to make a system so that when someone goes to http://www.mini-i.fm/referral/<user id here> it will redirect them to http://www.mini-i.fm/users/register.php?referral=<user id the user used before>

But im rubbish with .htaccess so I don't know how to set it up!

Currently I have:


RedirectMatch permanent ^/referral/<DONT KNOW WHAT GOES HERE>$ http://www.mini-i.fm/users/register.php?referral=<DONT KNOW WHAT GOES HERE>

If anyone can help, ill give them a Badge, Mini-I Club and 800 Credits on my site's user system :P

Thanks,
Simon

RNelson
14-02-2007, 10:08 PM
Why not just make a redirector using cPanel redirector thing?

Invent
14-02-2007, 10:08 PM
As it wont redirect the user keeping the ID they specified.

Luckyrare
14-02-2007, 11:05 PM
mmm, I wrote this... It may help ;)

http://www.habboxforum.com/showthread.php?t=312449

Invent
14-02-2007, 11:20 PM
Gah, how annoying is that. I tried mod_rewrite before, never worked. Tried it now and it worked!

+rep for your help, thread closed.

Want to hide these adverts? Register an account for free!