how to redirect certain url to port using .htaccess

Viewed 2115

I am trying to redirect url as abc.xyz.org to 192.168.xx.yy:abcd using htaccess. tried using following in htaccess.

RewriteRule ^(.*)$ 192.168.xx.yy:abcd [P,R=301,L]

but this rule isn't taking the port number.What should I do? i tried

RewriteRule ^(.*)$ 192.168.xx.yy:abcd[b] [P,R=301,L]
3 Answers
Related