This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: ignore facebook query paramater
Author
Message |
goldmail
Newbie


Joined: 19 August 2009
Posts: 22
Posted: 09 September 2010 at 6:28pm

we post links that look like this on facebook:
http://play.goldmail.com/hue84ffc8rjx

However, it appears that facebook is now adding a query parameter to the URL.  it now looks like this

http://play.goldmail.com/hue84ffc8rjx?ref=nf

we currently have a rule in our httpd.ini that says if the URL after the domain is not exactly 12 characters in length to redirect them to a page that says the URL is not valid.  Since facebook is tagging the extra parameter to the end of our URL, it is causing the rule to activate.  is there any way to tell it to ignore this specific parameter of "?ref=nf"?

RewriteRule .*/([a-z,0-9]){12,12}/$ /default.aspx?gmid=$1 [I,L]
RewriteRule .*/([a-z,0-9]{12,12})$ /default.aspx?gmid=$1 [I,L]
Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 10 September 2010 at 7:55am

Hello,

please try using the following:

RewriteRule (.*)\?ref=nf $1 [I,R,L]
RewriteRule .*/([a-z,0-9]){12,12}/?$ /default.aspx?gmid=$1 [I,L]

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
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum