Having trouble setting the use of a proxy using .htaccess

Discussion in 'PHP' started by rooneydavid, Jan 7, 2007.

  1. #1
    I having trouble setting the use of a proxy in my .htaccess file. I am working on a hotel website and Im using AJAX to pull the hotel room rates from there room availability host. Because of the security with AJAX I cant make a direct call. But I read of using the following code:

    RewriteEngine on
    RewriteRule ^/file_name$ http://www.remoteserver.com/file_name [P]

    I cant seem to get this to work, does anyone have any suggestions or other ways of getting around this?
     
    rooneydavid, Jan 7, 2007 IP