# PHP config
php_flag register_globals 0
php_flag register_long_arrays 0
php_flag register_argc_argv 0
php_flag magic_quotes_gpc 0
php_flag magic_quotes_runtime 0
php_flag display_errors 1
php_flag display_startup_errors 1
php_value log_errors 2047
php_value error_reporting 0
php_value post_max_size 50M
php_value max_input_time 300
php_value upload_max_filesize 48M
php_value memory_limit 48M
#php_value error_log '/www/d5dev/users/d5dev-scribble/www/error_log'
php_value default_mimetype 'text/html'
php_value default_charset 'utf-8'
DirectoryIndex index.php
#ErrorDocument 403 /index.php?mod=page&pn=404
#ErrorDocument 404 /index.php?mod=page&pn=404
# </ Base settings >
RewriteEngine On
RewriteBase /
RewriteRule ^u/(.+)$ files/images/u/$1 [L]
RewriteRule ^a/(.+)$ files/images/a/$1 [L]
RewriteRule ^b/(.+)$ files/images/b/$1 [L]
RewriteRule ^g/(.+)$ files/images/g/$1 [L]
RewriteRule ^c/(.+)$ files/images/c/$1 [L]
RewriteRule ^m/(.+)$ files/mc/$1 [L]
RewriteRule ^i/(.+\.(gif|png|jpg))$ includes/templates/images/$1 [L]
RewriteRule ^j/(.+\.[a-z]+)$ includes/templates/js/$1 [L]
RewriteRule ^f/(.+\.(swf))$ includes/templates/flash/$1 [L]
RewriteRule ^f/(.+\.(swz))$ includes/templates/flash/$1 [L]
RewriteRule ^s/(.+\.(css|stl))$ includes/templates/css/$1 [L]
RewriteRule ^materials/(.+)$ includes/templates/flash/materials/$1 [L]
RewriteRule ^open_uploader_data.xml$ index.php?type=profile&mod=albums&what=updtempl [L,NC,QSA]
RewriteRule ^id([0-9]+)/open_group_uploader_data.xml$ index.php?type=groups&mod=albums&what=updtempl&gid=$1 [L,NC,QSA]
RewriteRule ^users/([a-z0-9._-]+)/blog/?$ index.php?type=base&mod=blog&loginx=$1 [L,NC,QSA]
RewriteRule ^users/([a-z0-9._-]+)/blog/cid([0-9]+)$ index.php?type=base&mod=blog&loginx=$1&cid=$2 [L,NC,QSA]
RewriteRule ^users/([a-z0-9._-]+)/blog/id([0-9]+)$ index.php?type=base&mod=blog&loginx=$1&id=$2 [L,NC,QSA]
RewriteRule ^users/([a-z0-9._-]+)/blog/([^0-9]+)$ index.php?type=base&mod=blog&loginx=$1&what=$2 [L,NC,QSA]
RewriteRule ^users/([a-z0-9._-]+)/blog/([^0-9]+)$ index.php?type=base&mod=blog&loginx=$1&what=$2 [L,NC,QSA]
RewriteRule ^users/([a-z0-9._-]+)/friends/([^0-9]+)$ index.php?type=base&mod=$3&loginx=$1 [L,NC,QSA]
RewriteRule ^users/([a-z0-9._-]+)/friends/?$ index.php?type=base&mod=friends&loginx=$1 [L,NC,QSA]
RewriteRule ^groups/id([0-9]+)/reviews/([^/]+)?$ index.php?type=groups&mod=reviews&what=$2&id=$1 [L,NC,QSA]
RewriteRule ^groups/id([0-9]+)/reviews/edit?$ index.php?type=groups&mod=reviews&what=edit&id=$1 [L,NC,QSA]
RewriteRule ^groups/id([0-9]+)/reviews/?$ index.php?type=groups&mod=reviews&what=index&id=$1 [L,NC,QSA]
RewriteRule ^groups/id([0-9]+)/feeds/([^/]+)?$ index.php?type=groups&mod=feeds&what=$2&id=$1 [L,NC,QSA]
RewriteRule ^groups/id([0-9]+)/feeds/?$ index.php?type=groups&mod=feeds&what=index&id=$1 [L,NC,QSA]
RewriteRule ^groups/id([0-9]+)/announce/([^/]+)?$ index.php?type=groups&mod=announce&what=$2&id=$1 [L,NC,QSA]
RewriteRule ^groups/id([0-9]+)/announce/?$ index.php?type=groups&mod=announce&what=index&id=$1 [L,NC,QSA]
RewriteRule ^groups/id([0-9]+)/resources/([^/]+)$ index.php?type=groups&mod=resources&what=$2&id=$1 [L,NC,QSA]
RewriteRule ^groups/id([0-9]+)/resources/?$ index.php?type=groups&mod=resources&what=index&id=$1 [L,NC,QSA]
RewriteRule ^groups/id([0-9]+)/dis/id([0-9]+)/([^/]+)$ index.php?type=groups&id=$1&mod=dis&what=$3&id_dis=$2 [L,NC,QSA]
RewriteRule ^groups/id([0-9]+)/dis/id([0-9]+)$ index.php?type=groups&id=$1&mod=dis&what=getdisinsidelist&id_dis=$2 [L,NC,QSA]
RewriteRule ^groups/id([0-9]+)/dis/([^/]+)$ index.php?type=groups&id=$1&mod=dis&what=$2 [L,NC,QSA]
RewriteRule ^groups/id([0-9]+)/dis/?$ index.php?type=groups&mod=dis&what=index&id=$1 [L,NC,QSA]
RewriteRule ^groups/id([0-9]+)/events/id([0-9]+)$ index.php?type=groups&id=$1&mod=events&what=geteventsinsideinfo&id_ev=$2 [L,NC,QSA]
RewriteRule ^groups/id([0-9]+)/events/([^/]+)$ index.php?type=groups&id=$1&mod=events&what=$2 [L,NC,QSA]
RewriteRule ^groups/id([0-9]+)/events/?$ index.php?type=groups&mod=events&what=index&id=$1 [L,NC,QSA]
RewriteRule ^groups/id([0-9]+)/gallery/([0-9]+)/$ index.php?type=base&mod=groups&what=changeGallery&gid=$1&page=$2 [L,NC,QSA]
RewriteRule ^groups/id([0-9]+)/albums/?$ index.php?type=groups&mod=albums&what=gealb&gid=$1 [L,NC,QSA]
RewriteRule ^groups/id([0-9]+)/albums/uplilist/?$ index.php?type=groups&mod=albums&what=uplilist&gid=$1 [L,NC,QSA]
RewriteRule ^groups/id([0-9]+)/albums/uplimg/?$ index.php?type=groups&mod=albums&what=uplimg&gid=$1 [L,NC,QSA]
RewriteRule ^groups/id([0-9]+)/albums/([0-9]+)/([^/]+)/([0-9]+)/?$ index.php?type=groups&mod=albums&what=$3&gid=$1&aid=$2&id=$4 [L,NC,QSA]
RewriteRule ^groups/id([0-9]+)/albums/([0-9]+)/([^/]+)/?$ index.php?type=groups&mod=albums&what=$3&gid=$1&aid=$2 [L,NC,QSA]
RewriteRule ^groups/id([0-9]+)/albums/?$ index.php?type=groups&mod=albums&gid=$1 [L,NC,QSA]
RewriteRule ^groups/id([0-9]+)/albums/updxmlf/?$ index.php?type=groups&mod=albums&what=updxmlf&gid=$1 [L,NC,QSA]
RewriteRule ^groups/id([0-9]+)/albums/galbxmlf/?$ index.php?type=groups&mod=albums&what=galbxmlf&gid=$1 [L,NC,QSA]
RewriteRule ^groups/id([0-9]+)/albums/?$ index.php?type=groups&mod=albums&what=get_groups_albums&id=$1 [L,NC,QSA]
RewriteRule ^groups/id([0-9]+)/members/?$ index.php?type=base&mod=groups&what=members&id=$1 [L,NC,QSA]
RewriteRule ^users/([a-z0-9._-]+)/questions/?$ index.php?type=profile&mod=questions&loginx=$1 [L,NC,QSA]
RewriteRule ^users/([a-z0-9._-]+)/questions/([^/]+)$ index.php?type=profile&mod=questions&what=$2&loginx=$1 [L,NC,QSA]
RewriteRule ^users/([a-z0-9._-]+)/comments/?$ index.php?type=profile&mod=comments&loginx=$1 [L,NC,QSA]
RewriteRule ^users/([a-z0-9._-]+)/comments/([^/]+)$ index.php?type=profile&mod=comments&what=$2&loginx=$1 [L,NC,QSA]
RewriteRule ^users/([a-z0-9._-]+)/phcomments/?$ index.php?type=profile&mod=phcomments&what=getlist&loginx=$1 [L,NC,QSA]
RewriteRule ^users/([a-z0-9._-]+)/phcomments/([^/]+)$ index.php?type=profile&mod=phcomments&what=$2&loginx=$1 [L,NC,QSA]
RewriteRule ^users/([a-z0-9._-]+)/hgroups/?$ index.php?type=profile&mod=groups&what=getlist&loginx=$1 [L,NC,QSA]
RewriteRule ^users/([a-z0-9._-]+)/hgroups/([^/]+)$ index.php?type=profile&mod=groups&what=$2&loginx=$1 [L,NC,QSA]
RewriteRule ^users/([a-z0-9._-]+)/manage/settings/([^/]+)$ index.php?type=profile&mod=aboutme&what=$2 [L,NC,QSA]
RewriteRule ^users/([a-z0-9._-]+)/manage/settings/?$ index.php?type=profile&mod=aboutme&what=getset [L,NC,QSA]
RewriteRule ^users/([a-z0-9._-]+)/manage/customcolors/?$ index.php?type=profile&mod=customcolors&loginx=$1 [L,NC,QSA]
RewriteRule ^users/([a-z0-9._-]+)/manage/custom/?$ index.php?type=profile&mod=aboutme&what=htmlbox [L,NC,QSA]
RewriteRule ^users/([a-z0-9._-]+)/manage/business?$ index.php?type=profile&mod=business&loginx=$1 [L,NC,QSA]
RewriteRule ^users/([a-z0-9._-]+)/manage/business/([a-z0-9._-]+)?$ index.php?type=profile&mod=business&what=$2&loginx=$1 [L,NC,QSA]
RewriteRule ^users/([a-z0-9._-]+)/manage/business/([a-z0-9._-]+)/([0-9]+)$ index.php?type=profile&mod=business&what=$2&loginx=$1&bid=$3 [L,NC,QSA]
RewriteRule ^users/([a-z0-9._-]+)/manage/collage?$ index.php?type=profile&mod=collage&loginx=$1 [L,NC,QSA]
RewriteRule ^users/([a-z0-9._-]+)/manage/collage/([a-z0-9._-]+)?$ index.php?type=profile&mod=collage&what=$2&loginx=$1 [L,NC,QSA]
RewriteRule ^users/([a-z0-9._-]+)/manage/([^/]+)$ index.php?type=profile&mod=aboutme&what=$2 [L,NC,QSA]
RewriteRule ^users/([a-z0-9._-]+)/manage/?$ index.php?type=profile&mod=aboutme [L,NC,QSA]
RewriteRule ^users/([a-z0-9._-]+)/manage/deleteRecentV/?$ index.php?type=profile&mod=aboutme&what=deleteRecentV [L,NC,QSA]
RewriteRule ^users/([a-z0-9._-]+)/addlovepage/?$ index.php?type=base&mod=friends&what=addlovepage&loginx=$1 [L,NC,QSA]