GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   modrewrite problem (wordpress feeds) (https://gfy.com/showthread.php?t=569791)

V_RocKs 01-30-2006 03:37 AM

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 01-30-2006 03:43 AM

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 :thumbsup

V_RocKs 01-30-2006 05:06 AM

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.

Scotty.T 01-30-2006 05:20 AM

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

Scotty.T 01-30-2006 06:15 AM

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.

V_RocKs 01-30-2006 06:48 AM

Quote:

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.

Quote:

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

Scotty.T 01-30-2006 07:12 AM

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

V_RocKs 01-30-2006 07:57 AM

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...


All times are GMT -7. The time now is 04:21 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123