Subversion Repositories region

[/] [stable/] [1.0/] [htaccess_append.txt] - Blame information for rev 11

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 xrow
 
2
### BOT MATCH START
3
 
4
### If we detect a bot at all, set an environment variable
5
# NOTE: It is okay to match bad bots here too. We just don't want to match
6
#       real human people.
7
# To match most bots, check out User-Agent and look for empty referrer
8
RewriteCond %{HTTP_USER_AGENT} (Googlebot|Slurp|CazoodleBot|msnbot|Ask.*Jeeves|InfoPath|Baiduspider) [NC]
9
RewriteCond %{HTTP_REFERER} ^$
10
RewriteRule ^.* - [E=HTTP_CLIENT_IS_BOT:1]
11
# Certain bots actually do have referrers. Catch them too.
12
#RewriteCond %{HTTP_USER_AGENT} (becomebot) [NC]
13
#RewriteRule ^.* - [E=HTTP_CLIENT_IS_BOT:1]
14
 
15
### BOT MATCH END
16
 
17
RewriteCond %{REQUEST_URI} ^/$
18
RewriteCond %{SERVER_PORT} !^443$
19
RewriteRule .* http://%{HTTP_HOST}:%{SERVER_PORT}/region/index/ [R,L]
20
 
21
RewriteCond %{REQUEST_URI} ^/$
22
RewriteCond %{SERVER_PORT} ^443$
23
RewriteRule .* https://%{HTTP_HOST}/region/index/ [R,L]
24
 
25
### SESSION CHECK ( country and currency needs to be in session ) ###
26
RewriteCond %{HTTP_HOST} !.*webdav|soap.*
27
RewriteCond %{SERVER_PORT} !^443$
28
RewriteCond %{ENV:HTTP_CLIENT_IS_BOT} !^1$
29
RewriteCond %{HTTP_COOKIE} !.*eZSESSID=.*
30
RewriteCond %{REQUEST_URI} !.*region/index.*
31
RewriteCond %{REQUEST_URI} !^/index.php*
32
RewriteCond %{REQUEST_URI} !^/(var|extension|design|share|site|[a-zA-Z_]*admin)/.*
33 11 xrow
RewriteRule ^([a-z]+\_[A-Z]+|[a-z]+|)(/?)(.*) http://%{HTTP_HOST}:%{SERVER_PORT}/$1/region/index/$1?URL=$3 [R,L]
34 2 xrow