Created
March 24, 2016 08:12
-
-
Save lianglee/2fbc97ef1dd898da1182 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # OpenSource-SocialNetwork | |
| # | |
| # @package (Informatikon.com).ossn | |
| # @author OSSN Core Team <info@opensource-socialnetwork.org> | |
| # @copyright 2014 iNFORMATIKON TECHNOLOGIES | |
| # @license General Public Licence http://opensource-socialnetwork.org/licence | |
| # @link http://www.opensource-socialnetwork.org | |
| Options -Indexes | |
| Options +SymlinksIfOwnerMatch | |
| DirectoryIndex index.php | |
| <Files "error_log"> | |
| order allow,deny | |
| deny from all | |
| </Files> | |
| <FilesMatch "(nginx|htaccess).dist"> | |
| order allow,deny | |
| deny from all | |
| </FilesMatch> | |
| <IfModule mod_mime.c> | |
| AddType image/vnd.microsoft.icon .ico | |
| </IfModule> | |
| <IfModule mod_expires.c> | |
| ExpiresActive On | |
| ExpiresDefault "access plus 1 year" | |
| </IfModule> | |
| <FilesMatch "\.(jpg|jpeg|gif|png|mp3|flv|mov|avi|3pg|html|htm|swf|js|css|ico)$"> | |
| FileETag MTime Size | |
| </FilesMatch> | |
| <IfModule mod_rewrite.c> | |
| #SetEnv HTTP_MOD_REWRITE 1 | |
| RewriteEngine on | |
| RewriteRule ^rewrite.php$ installation/tests/apache_rewrite.php [L] | |
| RewriteRule ^action\/([A-Za-z0-9\_\-\/]+)$ system/handlers/actions.php?action=$1&%{QUERY_STRING} [L] | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteRule ^([A-Za-z0-9\_\-]+)$ index.php?h=$1 [QSA,L] | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteRule ^([A-Za-z0-9\_\-]+)\/(.*)$ index.php?h=$1&p=$2 [QSA,L] | |
| </IfModule> | |
| <IfModule mod_php5.c> | |
| php_value memory_limit 128M | |
| php_value register_globals 0 | |
| php_value post_max_size 8388608 | |
| php_value upload_max_filesize 5242880 | |
| php_value default_charset "UTF-8" | |
| </IfModule> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment