Results 1 to 2 of 2

Thread: url rewrite rule for fb comment

  1. #1
    Join Date
    Mar 2012
    Posts
    2

    url rewrite rule for fb comment

    Hi

    I have a website and set a facebook comment box on some pages. The comment box itself is working fine but when a visitor comments on it and on his fb wall, the link to the website page of the posted comment leads to an error page. I guess it because of the comment box automatically adds parameters.

    e.g. Comment box on a page http://www.example.com/example1/page1/ will changed into http://www.example.com/example/page1...46346461536131 which is obviously not existed.
    Some of the pages have .aspx at the end of url for some reason, then the fb comment link (http://www.example.com/example2/page...wfw46546846354) works fine.

    I reckon what I can do is to set up url rewrite rule on IIS but following rule I made not working:
    pattern> (.*)\?fb_comment_id
    url> {R:1}
    Can someone help me to solve this issue please?

    Thanks

  2. #2
    Join Date
    Mar 2012
    Posts
    2
    Thanks but it's sorted by importing url rule
    RewriteCond %{QUERY_STRING} ^fb_comment_id= [NC]
    RewriteRule (.*) $1? [NC,R=301,L]
    I didn't know IIS has such a feature and works perfect.

Similar Threads

  1. redirection & rewrite
    By Mr5o1 in forum Web Hosting and Domain Names
    Replies: 0
    Last Post: 15 Apr 2010, 12:59 AM
  2. formatting apache rewrite rule
    By komrad in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 1
    Last Post: 04 Nov 2008, 03:24 PM
  3. I need some help with this rewrite rule
    By darthmalis in forum Search Engine Optimization and Marketing
    Replies: 0
    Last Post: 15 Jul 2007, 03:53 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •