Redirect page to another page on a subdomain

Hi.

I need to redirect the url http://site.com/services/queries/status.php?result=0 to http://my.site.com/status.php?result=0

How can I do that?

Thanks in advance

You need to use .htaccess to redirect the url. I am not sure how exactly your website works, but here is some example to redirect the url based on your requirement.


RewriteEngine on
RewriteCond %{REQUEST_URI} services/queries/status.php
RewriteRule .* http://my.site.com/status.php?%{QUERY_STRING} [R=301,L]

It worked! Thanks a lot!