MMCT TEAM
Server IP : 86.38.243.181  /  Your IP : 216.73.216.86
Web Server : LiteSpeed
System : Linux in-mum-web1336.main-hosting.eu 4.18.0-553.34.1.lve.el8.x86_64 #1 SMP Thu Jan 9 16:30:32 UTC 2025 x86_64
User : u986601745 ( 986601745)
PHP Version : 7.4.33
Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF
Directory (0755) :  /home/u986601745/domains/emrskalsi.com/public_html/admin/tenderfiles/../../

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/u986601745/domains/emrskalsi.com/public_html/admin/tenderfiles/../../.htaccess
<IfModule mod_rewrite.c>
    RewriteEngine On

    # --- Force HTTPS and non-www ---
    RewriteCond %{HTTPS} off [OR]
    RewriteCond %{HTTP_HOST} ^www\.emrskalsi\.com$ [NC]
    RewriteRule ^(.*)$ https://emrskalsi.com/$1 [L,R=301]

    # --- Remove trailing slashes (except directories) ---
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)/$ /$1 [R=301,L]

    # --- Remove .php extension from URLs ---
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME}.php -f
    RewriteRule ^([^/]+)/?$ $1.php [L]

    # --- Custom 404 page ---
    # ErrorDocument 404 /404.php
</IfModule>

<IfModule mod_headers.c>
    Header unset X-Powered-By
</IfModule>

# Hide server signature
ServerSignature Off
Options -Indexes

# --- Protect critical files ---
<FilesMatch "(\.htaccess|\.env|\.git|config\.php|database\.php|secret\.php|composer\.(json|lock)|package\.json|webpack.*|yarn.*|phpunit\.xml)$">
    Require all denied
</FilesMatch>

# --- Block access to hidden dotfiles ---
<Files ~ "^\.">
    Require all denied
</Files>

# --- Protect index.php from direct write via URL ---
<Files "index.php">
    Require all granted
</Files>


MMCT - 2023