modrewrite problem (wordpress feeds)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • V_RocKs
    Damn Right I Kiss Ass!
    • Nov 2003
    • 32449

    #1

    modrewrite problem (wordpress feeds)

    Occasionally I get my feed as the google result:

    http://www.google.com/search?q=plane...&start=20&sa=N

    Rhino's Girls - Teen Solo Models
    File Format: Unrecognized - View as HTML
    ... Movies Big Tits Teens http://www.rhinosgirls.com/2006/01/2...ooke-big-tits/
    http://www.rhinosgirls.com/2006/01/2...big-tits/feed/ ...
    www.rhinosgirls.com/feed/ - Similar pages

    And the user is being sent to:
    http://www.rhinosgirls.com/feed/

    How can I use mod rewrite to check the referrer for google and if found, remove the /feed/ from the URL?

    (so that anyone coming in without being referrered by google still gets the regular feed.)
  • BlazingBucks_Ryan
    Confirmed User
    • Dec 2005
    • 203

    #2
    If you're still having the problem in 6-7 hours drop me a line, getting ready to head off to bed now ... Sure I could figure that out though

    Try googling apparent phrases.. Also wp's support forum as starting points. If that doesn't work do a google search along the lines of 'spider url specific redirects'

    GL
    BLAZING BUCKS - Leading The Fight Against Saturation!
    1000's Of Pics For Your TGP Submissions, Pre-Built Free Sites, and Dynamically
    Changing Tours Assuring Your Traffic Is ALWAYS Converting The Best It Possibly Can!

    ICQ : 253483920 or [email protected]

    Comment

    • V_RocKs
      Damn Right I Kiss Ass!
      • Nov 2003
      • 32449

      #3
      All anyone is talking about with the keywords I am searching on is:

      Redirecting using 301... not helping me...
      Feed not working... mine works (to well)

      I just need to remove /feed/ from the URL when google is the referrer.

      Comment

      • Scotty.T
        Confirmed User
        • Nov 2004
        • 1062

        #4
        Do a search for fusker on here. I think there was thread 2-3 weeks ago with people trying to redirect that traffic.
        .

        Comment

        • Scotty.T
          Confirmed User
          • Nov 2004
          • 1062

          #5
          Just had a look at the thread I was thinking of

          http://www.gfy.com/showthread.php?t=...ghlight=fusker

          Code:
          RewriteEngine on
          RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?google.com.*$ [NC]
          RewriteRule .* www.rhinogirls.com/ [L]
          If you do that, it will redirect all google traffic though, so probably not what you want.
          .

          Comment

          • V_RocKs
            Damn Right I Kiss Ass!
            • Nov 2003
            • 32449

            #6
            Originally posted by Scotty.T
            Just had a look at the thread I was thinking of

            http://www.gfy.com/showthread.php?t=...ghlight=fusker

            Code:
            RewriteEngine on
            RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?google.com.*$ [NC]
            RewriteRule .* www.rhinogirls.com/ [L]
            If you do that, it will redirect all google traffic though, so probably not what you want.
            RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?google.com.*$ [NC]
            RewriteRule ^(.+)?(/)?(feed|rdf|rss|rss2|atom)/?$ /$1 [QSA,L]
            That is what I ended up with... seems to work... going to have to make some changes for google in other countries though

            Comment

            • Scotty.T
              Confirmed User
              • Nov 2004
              • 1062

              #7
              Good. I'll have a proper play with this later on myself.
              .

              Comment

              • V_RocKs
                Damn Right I Kiss Ass!
                • Nov 2003
                • 32449

                #8
                Code:
                RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?google.(.+).*$ [NC]
                RewriteRule ^(.+)?(/)?(feed|rdf|rss|rss2|atom)/?$ /$1 [QSA,L]
                Seems to fix the issue of other contries too...

                Comment

                Working...