Quick Nav:  Online Store   |   Login | Register

Replacement Rule Performance

Rate this topic:

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
Page 2 of 2<< < 12
AuthorMessages
John Mitchell
Posts:3033


04/16/2008 9:50 AM  

Ok, if you add one more parameter to the capture method so that it is comparing the 1st capture group (the stuff between http://  and /) then it should work.

 

[PB: IF(  Capture("[PB:Request.Url]","http://([^/]+)/?(.*)", 1 )  != "www.pokerdiy.com"  ) {

     [PB: Response.Status("301 Moved Permanently") ]
     [PB:Response.AddHeader("Location","http://www.pokerydiy.com/$2")]
     [PB: Response.End() ]

} else{

/title>

}]

Rodney
<100 Posts
Posts:77


04/16/2008 6:45 PM  
Well done - works like a charm for all cases! (ps. I changed the destination URL from www.pokerydiy.com to www.pokerdiy.com - didn't want to give pokerydiy.com free traffic ;)

thanks
Rodney Joyce
Smart-Thinker.com - DotNetNuke Modules for Social Networks
PokerDIY.com - Simple Poker Leagues
Rodney
<100 Posts
Posts:77


04/16/2008 6:57 PM  
Doh - I just noticed that with a URL it is converting it into the unfriendly URL format eg.

http://www.pokerdiy.co.uk/Leagues/PokerLeagues/tabid/435/Default.aspx (.co.uk should point at .com)

becomes

http://www.pokerdiy.com/Default.aspx?TabId=435



thanks
Rodney Joyce
Smart-Thinker.com - DotNetNuke Modules for Social Networks
PokerDIY.com - Simple Poker Leagues
John Mitchell
Posts:3033


04/16/2008 9:35 PM  
I noticed that too, and as it turns out that is going to require me to come up with a different way to do 301 redirects.
The reason it is happening is because at the time that PageBlaster gets to Capture the Url it has already been re-written back to the internal DNN Url.

I'll let you know when I have a better solution.
Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
Page 2 of 2<< < 12

Forums >Snapsis Product Support >PageBlaster > Replacement Rule Performance



ActiveForums 3.7
Powered by: Snapsis Software