This forum has been moved here:
Helicon Tech Community Forum

ISAPI_Rewrite 3.0 (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 3.0
Subject Topic: Redirect URL with parameter
Author
Message |
janmontano
Newbie


Joined: 12 September 2011
Location: Australia
Posts: 15
Posted: 30 October 2011 at 5:45pm

My redirect is not working. Probably because of the ?
which needs escaping? But I'm not sure.

RewriteCond %{HTTP_HOST} ^(?:www\.)?masterpet\.com$ [NC]
RewriteRule ^Promotion/Trouble-And-Trix/?pID=b6dc253d-
e1d7-4166-992b-646f54942706$
http://www.masterpet.com/Promotion/Yours-Droolly/Yours-
Droolly/?pID=b6dc253d-e1d7-4166-992b-646f54942706&id=7895
[NC,R=301,L]

What do I need to do with this?

Cheers.

__________________
http://www.kokoness.com.au
Back to Top Visit janmontano's Homepage
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 31 October 2011 at 6:00am

That is correct. Please, try using:

RewriteCond %{HTTP_HOST} ^(?:www\.)?masterpet\.com$ [NC]
RewriteCond %{QUERY_STRING} ^pID=b6dc253d-e1d7-4166-992b-646f54942706$ [NC,L]
RewriteRule ^Promotion/Trouble-And-Trix/$ /Promotion/Yours-Droolly/Yours-Droolly/?pID=b6dc253d-e1d7-4166-992b-646f54942706&id=7895? [NC,R=301,L]

Regards
Andrew
Back to Top
 
janmontano
Newbie


Joined: 12 September 2011
Location: Australia
Posts: 15
Posted: 31 October 2011 at 5:04pm

Hi Andrushka,

Thanks for the reply but I receive a "Syntax is incorrect"
error.

Unknown expression on line #191: RewriteCond %
{QUERY_STRING} ^pID=b6dc253d-e1d7-4166-992b-646f54942706$
[NC,L]

I copied it exactly as you specified.

__________________
http://www.kokoness.com.au
Back to Top Visit janmontano's Homepage
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 02 November 2011 at 6:37am

Oh, just erase the [L] flag.

Regards
Andrew
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version