Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../var/softacul.../ossn
File: .htaccess
# v6.5.0.0
[0] Fix | Delete
# Open Source Social Network
[1] Fix | Delete
#
[2] Fix | Delete
# @package .htaccess.ossn
[3] Fix | Delete
# @author OSSN Core Team <info@opensource-socialnetwork.org>
[4] Fix | Delete
# @copyright (c) Engr. Syed Arsalan Hussain Shah (OpenTeknik LLC)
[5] Fix | Delete
# @license OPEN SOURCE SOCIAL NETWORK LICENSE https://opensource-socialnetwork.org/licence
[6] Fix | Delete
# @link https://www.opensource-socialnetwork.org
[7] Fix | Delete
[8] Fix | Delete
Options -Indexes
[9] Fix | Delete
Options +SymlinksIfOwnerMatch
[10] Fix | Delete
DirectoryIndex index.php
[11] Fix | Delete
[12] Fix | Delete
<Files "error_log">
[13] Fix | Delete
order allow,deny
[14] Fix | Delete
deny from all
[15] Fix | Delete
</Files>
[16] Fix | Delete
[17] Fix | Delete
<Files ".user.ini">
[18] Fix | Delete
order allow,deny
[19] Fix | Delete
deny from all
[20] Fix | Delete
</Files>
[21] Fix | Delete
[22] Fix | Delete
<FilesMatch "(nginx|htaccess).dist">
[23] Fix | Delete
order allow,deny
[24] Fix | Delete
deny from all
[25] Fix | Delete
</FilesMatch>
[26] Fix | Delete
[27] Fix | Delete
#Disallow CLI and CRON script from browser
[28] Fix | Delete
RedirectMatch 404 ^/system/handlers/cli$
[29] Fix | Delete
RedirectMatch 404 ^/system/handlers/cron$
[30] Fix | Delete
[31] Fix | Delete
<IfModule mod_mime.c>
[32] Fix | Delete
AddType image/vnd.microsoft.icon .ico
[33] Fix | Delete
</IfModule>
[34] Fix | Delete
[35] Fix | Delete
<IfModule mod_expires.c>
[36] Fix | Delete
ExpiresActive On
[37] Fix | Delete
ExpiresDefault "access plus 1 year"
[38] Fix | Delete
</IfModule>
[39] Fix | Delete
[40] Fix | Delete
<FilesMatch "\.(jpg|jpeg|gif|png|mp3|flv|mov|avi|3pg|html|htm|swf|js|css|ico)$">
[41] Fix | Delete
FileETag MTime Size
[42] Fix | Delete
</FilesMatch>
[43] Fix | Delete
[44] Fix | Delete
<IfModule mod_rewrite.c>
[45] Fix | Delete
#SetEnv HTTP_MOD_REWRITE 1
[46] Fix | Delete
RewriteEngine on
[47] Fix | Delete
[48] Fix | Delete
RewriteRule ^rewrite.php$ installation/tests/apache_rewrite.php [L]
[49] Fix | Delete
[50] Fix | Delete
RewriteRule ^action\/([A-Za-z0-9\_\-\/]+)$ system/handlers/actions.php?action=$1&%{QUERY_STRING} [L]
[51] Fix | Delete
[52] Fix | Delete
RewriteCond %{REQUEST_FILENAME} !-d
[53] Fix | Delete
RewriteCond %{REQUEST_FILENAME} !-f
[54] Fix | Delete
RewriteRule ^([A-Za-z0-9\_\-]+)$ index.php?h=$1 [QSA,L]
[55] Fix | Delete
[56] Fix | Delete
RewriteCond %{REQUEST_FILENAME} !-d
[57] Fix | Delete
RewriteCond %{REQUEST_FILENAME} !-f
[58] Fix | Delete
RewriteRule ^([A-Za-z0-9\_\-]+)\/(.*)$ index.php?h=$1&p=$2 [QSA,L]
[59] Fix | Delete
[60] Fix | Delete
</IfModule>
[61] Fix | Delete
[62] Fix | Delete
#https://github.com/nextcloud/server/issues/26569
[63] Fix | Delete
<IfModule mod_php.c>
[64] Fix | Delete
php_value memory_limit 512M
[65] Fix | Delete
php_value register_globals 0
[66] Fix | Delete
php_value post_max_size 105M
[67] Fix | Delete
php_value upload_max_filesize 100M
[68] Fix | Delete
php_value default_charset "UTF-8"
[69] Fix | Delete
php_flag session.cookie_httponly on
[70] Fix | Delete
</IfModule>
[71] Fix | Delete
[72] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function