Forum Moderators: phranque

Message Too Old, No Replies

Sending Referrers to Coral Cache

doesn't work?

         

yummybanas

1:54 pm on Apr 7, 2006 (gmt 0)

10+ Year Member



I'm trying to do more or less the same thing mentionned here [webmasterworld.com...]


RewriteEngine On
Options +FollowSymlinks
RewriteCond %{HTTP_REFERER} blogspot\.com [NC,OR]
RewriteCond %{HTTP_REFERER} slashdot\.org
RewriteRule ^/(.mysite.com.example.net:8080*)$ http://%mysite.com.example.net:8080$1 [R]

However, referrers from blogspot aren't redirected.

Have I missed something?

[edited by: jdMorgan at 2:03 pm (utc) on April 7, 2006]
[edit reason] Example.com [/edit]

jdMorgan

2:11 pm on Apr 7, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This code has several problems, syntactically and logically.

If the syntax was correct, it appears that the code would redirect to the same port at the same domain, appending that domain and port as a 'page' URL, therefore accomplishing nothing but causing your server to get stuck in a redirection loop, while making the URL longer and longer. This would increase, rather than decrease, your server load.

So, it's not at all clear what you are trying to accomplish. A list of domains, ports, and URLs that should and should not be redirected, and the URLs to which those redirects are desired, would be most helpful. Please use example.com or example.net as the domain.

Also, the correct syntax varies depending on where you put this code, so please state whether this is for use in .htaccess, httpd.conf, or conf.d.

JIm

yummybanas

5:45 pm on Apr 7, 2006 (gmt 0)

10+ Year Member



Thanks for your response.

What I'm trying to accomplish is redirecting all referers from blogspot/slashdot to the coral cache
mirror of my page, as explained here. [en.wikipedia.org...]

What would be the correct .htaccess rewrite rule to accomplish that?

jdMorgan

12:11 am on Apr 9, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I don't know, because it depends on your URLs and/or filepaths, of which I know little or nothing. In my reply above, the critical point is that you are apparently either trying to redirect from one place to the exact same place, which will put your server into an 'infinite' redirection loop, or you are trying to redirect from one place to a place that essentially 'doubles' the URL. Neither of these two options appears to make sense.
RewriteRule ^/(.mysite.com.example.net:8080*)$ [%mysite.com.example.net:8080$1...] [R]

This is wrong, but I can't tell you what may be right without more information.

So where [what URL(s)] do you want to redirect from, and where [what URL(s)] do you want to redirect to?

Jim

yummybanas

10:24 am on Apr 10, 2006 (gmt 0)

10+ Year Member



Thanks for your reply. Basically, I want to redirect all digg referrers to www.mysite.com.example.net:8080 or/and www.mysite.com/digg.html