cpartsenidis

Registered
May 21, 2013
3
1
51
cPanel Access Level
Root Administrator
Hello to everyone,

I need to hardcode into .htaccess the following and I would like to ask if someone can help me:

When a user requests the following URL:

http://www.mysite.com/click/redir.php?link=77

I'd like it .htaccess to redirect it to this URL:

http://www.theothersite.com/goto/?48321

If anyone can help me, it would be much appreciated.

Thank you in advanced!

Chris.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello :)

Have you tried using the "Redirects" option in cPanel to add this redirect? This option utilizes the .htaccess file when you add the redirect in the UI.

Thank you.