How to handle referers at end of URL
4 posts
• Page 1 of 1
How to handle referers at end of URL
Several years ago I hired someone to rewrite my URLs to make them friendly but I've realized when referrers are added to the end of the URLs I get a 404.
For instance Facebook adds a long referrer to the URL on a liked page:
?fb_action_ids=4878469770534&fb_action_types=og.likes&fb_source=aggregation&fb_aggregation_id=246965925417366
which 404's
Is there a solution for this?
Here is the rewrite rule for the page in question:
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Block external access to the httpd.ini and httpd.parse.errors files
RewriteRule /httpd(?:\.ini|\.parse\.errors).* / [F,I,O]
# Block external access to the Helper ISAPI Extension
RewriteRule .*\.isrwhlp / [F,I,O]
RewriteRule ^/(.+)-(.+)/(\d+)$ /addetail.asp?CarID=$3&make=$1&model=$2&r=1 [I,L]
Thanks!
For instance Facebook adds a long referrer to the URL on a liked page:
?fb_action_ids=4878469770534&fb_action_types=og.likes&fb_source=aggregation&fb_aggregation_id=246965925417366
which 404's
Is there a solution for this?
Here is the rewrite rule for the page in question:
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Block external access to the httpd.ini and httpd.parse.errors files
RewriteRule /httpd(?:\.ini|\.parse\.errors).* / [F,I,O]
# Block external access to the Helper ISAPI Extension
RewriteRule .*\.isrwhlp / [F,I,O]
RewriteRule ^/(.+)-(.+)/(\d+)$ /addetail.asp?CarID=$3&make=$1&model=$2&r=1 [I,L]
Thanks!
Re: How to handle referers at end of URL
Hello,
Please try to fix your rule like this:
RewriteRule ^/(.+)-(.+)/(\d+)(?:\?.*)?$ /addetail.asp?CarID=$3&make=$1&model=$2&r=1 [I,L]
Please try to fix your rule like this:
RewriteRule ^/(.+)-(.+)/(\d+)(?:\?.*)?$ /addetail.asp?CarID=$3&make=$1&model=$2&r=1 [I,L]
- suntattood
- Posts: 27
- Joined: 04 Dec 2012, 21:06
Re: How to handle referers at end of URL
This seems reasonable. Thanks.
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests