My htaccess Options +FollowSymlinks RewriteEngine on RewriteRule ^apps/apps/([a-z0-9.]+)/ http://www.abc.com/xyz/index.php?userhash=$1 PHP: This is uploaded on domain http://www.xyz.com/ Now when I am trying to access http://www.xyz.com/apps/apps/ajshdkshad/, it is redirecting (301 and 302) me to http://www.abc.com/xyz/index.php?userhash=ajshdkshad I dont want redirect, I want htaccess to silently access the url from background. Is this possible at all ? If yes, I will pay after testing it. Regards.
I don't think this is possible as it is a different domain. You can only use the mod_rewrite on the same domain. different domains will always redirect.
Do you just need some information from the abc site, have you looked at using curl() instead and thus post the gathered information on the xyz site.
I am not 100% sure but I think that mod_proxy might make it possible to do what you are trying to achieve. However this is not installed on servers really so in order to use it you need a VPS or dedicated server.