PHP 5.6.40
Preview: .htaccess Size: 2.11 KB
//var/softaculous/ossn/.htaccess

# v9.1.0.0
# Open Source Social Network
#
# @package   .htaccess.ossn
# @author    OSSN Core Team <info@opensource-socialnetwork.org>
# @copyright (c) Engr. Syed Arsalan Hussain Shah (OpenTeknik LLC)
# @license   OPEN SOURCE SOCIAL NETWORK LICENSE https://opensource-socialnetwork.org/licence 
# @link      https://www.opensource-socialnetwork.org 

Options -Indexes
Options +SymlinksIfOwnerMatch
DirectoryIndex index.php

<Files "error_log">
	order allow,deny
	deny from all
</Files>

<Files ".user.ini">
	order allow,deny
	deny from all
</Files>

<FilesMatch "(nginx|htaccess).dist">
	order allow,deny
	deny from all
</FilesMatch>

#Disallow CLI and CRON script and other from browser
RedirectMatch 404 ^/system/handlers/cli$
RedirectMatch 404 ^/system/handlers/cron$
RedirectMatch 404 ^/upgrade/upgrades/
RedirectMatch 404 /actions/
RedirectMatch 404 /libraries/
RedirectMatch 404 /classes/
RedirectMatch 404 /plugins/default/

<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>
	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_headers.c>
    <FilesMatch "\.(jpg|jpeg|png|gif|webp|svg)$">
        Header set Access-Control-Allow-Origin "*"
    </FilesMatch>
</IfModule>

#https://github.com/nextcloud/server/issues/26569
<IfModule mod_php.c>
	php_value memory_limit 512M
	php_value register_globals 0
	php_value post_max_size 105M
	php_value upload_max_filesize 100M
	php_value default_charset "UTF-8"
	php_flag session.cookie_httponly on
</IfModule>

Directory Contents

Dirs: 6 × Files: 20

Name Size Perms Modified Actions
images DIR
- drwxr-xr-x 2026-07-03 10:09:22
Edit Download
php53 DIR
- drwxr-xr-x 2026-07-03 10:09:22
Edit Download
php56 DIR
- drwxr-xr-x 2026-07-03 10:09:22
Edit Download
php71 DIR
- drwxr-xr-x 2026-07-03 10:09:22
Edit Download
php81 DIR
- drwxr-xr-x 2026-07-03 10:09:22
Edit Download
php82 DIR
- drwxr-xr-x 2026-07-03 10:09:22
Edit Download
2.11 KB lrw-r--r-- 2026-06-01 05:58:22
Edit Download
330 B lrw-r--r-- 2022-06-20 08:14:26
Edit Download
1.44 KB lrw-r--r-- 2026-07-02 06:34:00
Edit Download
4.54 KB lrw-r--r-- 2026-07-02 08:24:46
Edit Download
4.55 KB lrw-r--r-- 2026-07-02 08:24:46
Edit Download
433 B lrw-r--r-- 2025-12-31 06:59:50
Edit Download
8.29 KB lrw-r--r-- 2026-07-02 08:24:46
Edit Download
346 B lrw-r--r-- 2022-11-28 08:12:44
Edit Download
3.04 KB lrw-r--r-- 2026-07-02 08:24:46
Edit Download
3.30 KB lrw-r--r-- 2026-07-02 06:34:00
Edit Download
924 B lrw-r--r-- 2021-12-23 06:54:36
Edit Download
12.20 KB lrw-r--r-- 2026-07-02 08:24:46
Edit Download
1.33 KB lrw-r--r-- 2021-12-23 06:54:36
Edit Download
2.59 KB lrw-r--r-- 2026-07-02 08:24:46
Edit Download
578 B lrw-r--r-- 2025-01-30 04:24:04
Edit Download
127 B lrw-r--r-- 2021-12-23 06:54:36
Edit Download
508 B lrw-r--r-- 2025-10-06 02:57:34
Edit Download
4.86 KB lrw-r--r-- 2026-07-02 08:24:46
Edit Download
382 B lrw-r--r-- 2021-12-23 06:54:36
Edit Download
59 B lrw-r--r-- 2021-12-23 06:54:36
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).