Rewriting rule help please

Hi,

I’m trying to redirect requests for 4 web pages to an alternative address. I would like these to be proxy’d.

The url’s i’m trying to redirect are:

http://www.mysite.co.uk/support/webextend/webactivate.asp?[querystring]
(There are 3 other pages in the same folder which require redirecting to their repective url’s in the new destination, but also other pages which do not require redirection)

redirect to:

http://192.168.0.2/support/webextend/webactivate.asp?[querystring]

The .htaccess has the following:

RewriteCond %{REQUEST_URI} ^/webactivate.asp$ [NC]
RewriteRule ^webactivate.asp$ https://192.168.0.2/webextend/webactivate.asp [P,L]

The redirect isn’t working, and I’m fresh out of ideas as to why. Can anyone help me out please?

James

Assuming that your htaccess file is in your web root…

RewriteRule ^[COLOR="#FF0000"]support/webextend/[/COLOR]webactivate[COLOR="#FF0000"]\\[/COLOR].asp$ https://192.168.0.2[COLOR="#FF0000"]/support[/COLOR]/webextend/webactivate.asp [P,L]