# Disable directory browsing
Options -Indexes

# ----------------------------------------------------------------------
# Rewrite engine
# ----------------------------------------------------------------------

# Turning on the rewrite engine is necessary for the following rules and features.
# FollowSymLinks must be enabled for this to work.
RewriteEngine On
RewriteBase /software/

# Prevent direct access to PHP files
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule \.php$ - [R=404,L]

# Redirect all requests to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]


<IfModule mod_rewrite.c>
    Options +FollowSymlinks -Indexes
    RewriteEngine On

    # Redirect Trailing Slashes...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} (.+)/$
    RewriteRule ^ %1 [L,R=301]

    # Rewrite to index.php if not a real file/directory
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/$1 [L,QSA]
    	RewriteCond %{HTTP:Authorization} .
	RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>


<IfModule !mod_rewrite.c>
	# If we don't have mod_rewrite installed, all 404's
	# can be sent to index.php, and everything works as normal.
	ErrorDocument 404 index.php
</IfModule>

# Disable server signature start
	ServerSignature Off
# Disable server signature end
# Block all direct access to files in this folder
# Deny all direct HTTP access (browser or download tools)


# Fallback for older servers




<Directory "shriramnavyugtrust.org/newsoft/">
    Order allow,deny
    Deny from all
</Directory>
<FilesMatch "\.(zip|exe|rar|tar|gz|7z)$">
    Order allow,deny
    Deny from all
</FilesMatch>
php_value upload_max_filesize 20M
php_value post_max_size 22M
php_value memory_limit 128M
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php82” package as the default “PHP” programming language.
<IfModule mime_module>
  AddType application/x-httpd-ea-php82 .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
