[Wolves] one for you apache experts

Simon Morris simon.morris at cmtww.com
Mon Mar 27 23:46:21 BST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Baza wrote:

>> Baza wrote:
>>>
>>> On 27 Mar 2006, at 16:04, Simon Morris wrote:
>>>
>>>> apache2ctl configtest
>>>
>>> r
> 
> Interestingly, after more playing around I can get a HTTP Error 403 - 
> Forbidden page to appear, but not the page the RewriteRule /(.*) 
> http://walkertopia.com/bounce.htm should go to.

I got it to work...

Bad page: http://www.eccosys.net/test.htm
Target site: http://beerandspeech.org

If you click the link you get the bounce page - if you go to the site
directly you get the normal page.

In fact this only breaks the linkage from
http://www.eccosys.net/test.htm - the link on the front page works fine

Apache code

RewriteEngine On
RewriteCond %{HTTP_REFERER} http://www.eccosys.net/test.htm
RewriteRule ^.* http://www.google.com/search?q=cheesecakes [L]
RewriteRule ^/$ http://www.beerandspeech.org/bounce.htm

Interestingly - the RewriteRule for Google there means that if you try
to follow a link from eccosys.net/test.htm to my site you get a google
listing of pages about Cheesecakes

Let me know if that works

~sm
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFEKGlRtjeLJb8KijsRAsVBAKCvsaTTAJ7tStihnjrGubKwJIewxwCgmOWK
GIEvpCWpUV8oZw9VE8KBcPg=
=hCOv
-----END PGP SIGNATURE-----



More information about the Wolves mailing list