[i]root@eden:~# [b]cat /var/www/.htaccess[/b][/i]
#php_flag suhosin.cookie.encrypt Off
#php_value suhosin.request.max_vars 2048
#php_value suhosin.post.max_vars 2048
order allow,deny
allow from all
deny from 1.2.3.4 #bad-ips
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
RewriteCond %{http_host} ^my.dom
RewriteRule ^(.*) http://www.my.dom/$1 [R=301,L]
RewriteCond %{HTTP_COOKIE} !bbimloggedin=yes
RewriteCond %{HTTP_COOKIE} !bbuserid=
RewriteCond %{HTTP_COOKIE} !bbpassword=
RewriteCond %{HTTP_COOKIE} !if_imloggedin=yes
RewriteCond %{HTTP_COOKIE} !if_userid=
RewriteCond %{HTTP_COOKIE} !if_password=
RewriteCond %{REQUEST_METHOD} ^HEAD|GET$
RewriteCond %{QUERY_STRING} !s=[a-fA-F0-9]{32}
RewriteCond %{QUERY_STRING} !product=vbnexus
RewriteCond %{REQUEST_URI} !^/(login|register|usercp|private|profile|cron|image) \.php$
RewriteCond %{REQUEST_URI} !^/admincp
RewriteRule (.*) - [E=Cache-Control:max-age=120]
# RewriteRule /test.php - [L,E=Cache-Control:max-age=120]
RewriteRule ^home/$ forum.php [L,R=301]
RewriteRule ^f([0-9]+)/$ forumdisplay.php?f=$1 [L,R=301]
RewriteRule ^f([0-9]+)-([0-9]+)/$ forumdisplay.php?f=$1&page=$2 [L,R=301]
RewriteRule ^t([0-9]+)/$ showthread.php?t=$1 [L,R=301]
RewriteRule ^t([0-9]+)-([0-9]+)/$ showthread.php?t=$1&page=$2 [L,R=301]
RewriteRule ^t([0-9]+)-print/$ showthread.php?t=$1 [L,R=301]
RewriteRule ^blogs/u([0-9]+)-e([0-9]+)/$ entry.php?b=$2 [L,R=301]
[i]root@eden:~# [/i]
[I]root@eden:~#[/I] [I][B]cat /var/www/.htaccess[/B][/I]
#php_flag suhosin.cookie.encrypt Off
#php_value suhosin.request.max_vars 2048
#php_value suhosin.post.max_vars 2048
order allow,deny
allow from all
deny from 1.2.3.4 #bad-ips
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
RewriteCond %{http_host} ^my.dom
RewriteRule ^(.*) http://www.my.dom/$1 [R=301,L]
#removed 3 lines below by request of NiteWave@LS 20130514 1157.G+7
#RewriteCond %{HTTP_COOKIE} !bbimloggedin=yes
#RewriteCond %{HTTP_COOKIE} !bbuserid=
#RewriteCond %{HTTP_COOKIE} !bbpassword=
RewriteCond %{HTTP_COOKIE} !if_imloggedin=yes
RewriteCond %{HTTP_COOKIE} !if_userid=
RewriteCond %{HTTP_COOKIE} !if_password=
RewriteCond %{REQUEST_METHOD} ^HEAD|GET$
RewriteCond %{QUERY_STRING} !s=[a-fA-F0-9]{32}
RewriteCond %{QUERY_STRING} !product=vbnexus
RewriteCond %{REQUEST_URI} !^/(login|register|usercp|private|profile|cron|image)\.php$
RewriteCond %{REQUEST_URI} !^/admincp
RewriteRule (.*) - [E=Cache-Control:max-age=120]
# RewriteRule /test.php - [L,E=Cache-Control:max-age=120]
RewriteRule ^home/$ forum.php [L,R=301]
RewriteRule ^f([0-9]+)/$ forumdisplay.php?f=$1 [L,R=301]
RewriteRule ^f([0-9]+)-([0-9]+)/$ forumdisplay.php?f=$1&page=$2 [L,R=301]
RewriteRule ^t([0-9]+)/$ showthread.php?t=$1 [L,R=301]
RewriteRule ^t([0-9]+)-([0-9]+)/$ showthread.php?t=$1&page=$2 [L,R=301]
RewriteRule ^t([0-9]+)-print/$ showthread.php?t=$1 [L,R=301]
RewriteRule ^blogs/u([0-9]+)-e([0-9]+)/$ entry.php?b=$2 [L,R=301]
[I]root@eden:~#[/I]
RewriteCond %{HTTP_COOKIE} !if_imloggedin=yes
RewriteCond %{HTTP_COOKIE} !if_userid=
RewriteCond %{HTTP_COOKIE} !if_password=