| 1 | RewriteEngine On |
|---|
| 2 | |
|---|
| 3 | # Same as IA_URL_PREFIX |
|---|
| 4 | # Slashes at both ends |
|---|
| 5 | RewriteBase --write-me-IA_URL_PREFIX-- |
|---|
| 6 | |
|---|
| 7 | RewriteCond %{REQUEST_URI} !^.*/index\.php$ |
|---|
| 8 | RewriteCond %{REQUEST_URI} !^.*/static/.*$ |
|---|
| 9 | RewriteCond %{REQUEST_URI} !^.*/forum/.*$ |
|---|
| 10 | RewriteCond %{REQUEST_URI} !^.*/robots\.txt$ |
|---|
| 11 | RewriteCond %{REQUEST_URI} !^.*/favicon\.ico$ |
|---|
| 12 | RewriteCond %{REQUEST_URI} !^.*/stiri/.*$ |
|---|
| 13 | RewriteCond %{REQUEST_URI} !^.*/news_feed$ |
|---|
| 14 | RewriteCond %{REQUEST_URI} !^.*/avatar/.*$ |
|---|
| 15 | RewriteRule ^(.*) index.php?page=$1 [QSA] |
|---|
| 16 | |
|---|
| 17 | RewriteRule ^avatar/(tiny|small|normal|forum|big|full)/(.+)$ static/images/avatar/$1/a$2 |
|---|
| 18 | RewriteCond %{REQUEST_FILENAME} !-f |
|---|
| 19 | RewriteCond %{REQUEST_FILENAME} !-d |
|---|
| 20 | RewriteRule ^static/images/avatar/(tiny|small|normal|forum|big|full)/(.+)$ static/images/avatar/$1/noimage |
|---|
| 21 | |
|---|
| 22 | RewriteRule ^stiri/(.*)$ blog/$1 [R=301,QSA] |
|---|
| 23 | RewriteRule ^news_feed$ blog?action=rss [R=301,QSA] |
|---|
| 24 | |
|---|
| 25 | php_value magic_quotes_gpc 0 |
|---|
| 26 | php_value register_globals 0 |
|---|
| 27 | php_value session.use_only_cookies 1 |
|---|
| 28 | |
|---|
| 29 | # Error reporting. Everything is logged, but only in the web server log. |
|---|
| 30 | php_value error_reporting 65535 |
|---|
| 31 | |
|---|
| 32 | # FIXME: change for production environment. |
|---|
| 33 | php_value display_errors true |
|---|
| 34 | php_value log_errors true |
|---|
| 35 | php_value html_errors false |
|---|
| 36 | php_value memory_limit "64M" |
|---|
| 37 | php_value post_max_size "65M" |
|---|
| 38 | php_value upload_max_filesize "64M" |
|---|