Options +FollowSymlinks RewriteEngine on Options -Indexes RewriteBase / # Additional rules (written for CodingTeam.net but usable for you) # If you want to add them, you have to configure them. # # * Automatic subdomains rewriting for projects # RewriteCond %{HTTP_HOST} !^www\.codingteam\.net?$ # RewriteCond %{HTTP_HOST} ^(.*)\.codingteam\.net?$ # RewriteRule ^(.*) http://www.codingteam.net/project/%1 [R=301,L] # # * No www! # RewriteCond %{HTTP_HOST} ^www\.codingteam\.net?$ # RewriteRule ^(.*) http://codingteam.net/$1 [QSA,L,R=301] RewriteRule ^project/([0-9a-z_-]+)/upload/(.*)$ public/upload/projects/$1/$2 [L] RewriteRule ^users/avatar/([0-9a-zA-Z_-]+)$ public/upload/avatars/$1 [L] RewriteRule ^users/briefcase/([0-9a-zA-Z_-]+)/(.*)$ public/upload/briefcase/$1/$2 [L] RewriteCond %{REQUEST_URI} !^/public/(images|muclogs|upload|fortunes-vote.js|textview-(.*).js|timeline-hideshow.js).*?$ RewriteCond %{REQUEST_URI} !^/inc/templates/([a-z-]+)\.css?$ RewriteCond %{REQUEST_URI} !^/robots.txt?$ RewriteRule ^(.*)$ index.php [QSA,L] php_flag display_errors Off php_flag magic_quotes_gpc Off php_flag magic_quotes_runtime Off php_flag magic_quotes_sybase Off php_flag session.use_trans_sid Off php_value docref_root http://www.php.net/