S2OJ/web/.htaccess
Masco Skray 96d4a3ecf7 style(judger,web): move code out from subfolder "1"
Due to historical reasons, the code is in subfolder "1".
With SVN removal, we place the code back and remove the annoying "1" folder.
2019-06-14 23:34:41 +08:00

26 lines
518 B
ApacheConf

Options -Indexes
php_value session.save_path /var/lib/php/uoj_sessions
php_value session.gc_maxlifetime 172800
php_value session.cookie_lifetime 31536000
php_value post_max_size 1000M
php_value upload_max_filesize 1000M
php_value session.gc_probability 1
php_value session.gc_divisor 1000
php_value date.timezone 'Asia/Shanghai'
DirectorySlash Off
DirectoryIndex
RewriteEngine On
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)/$ /$1 [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]