MMCT TEAM
Server IP : 82.112.239.40  /  Your IP : 216.73.216.81
Web Server : LiteSpeed
System : Linux in-mum-web1676.main-hosting.eu 5.14.0-503.38.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 18 08:52:10 EDT 2025 x86_64
User : u641149403 ( 641149403)
PHP Version : 7.3.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF
Directory (0755) :  /home/u641149403/domains/uniformindia.co.in/public_html/admin/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/u641149403/domains/uniformindia.co.in/public_html/admin/.htaccess
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

    # --- Optional: rewrite /dashboard → /index.php ---
    RewriteRule ^dashboard$ index.php [L]

    # --- Serve existing files/folders directly ---
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]

    # --- If URI + .php exists, serve it (clean URLs) ---
    RewriteCond %{REQUEST_FILENAME}.php -f
    RewriteRule ^([^/]+)$ $1.php [L]

    # --- Fallback: route everything else to index.php ---
    RewriteRule . /index.php [L]
</IfModule>


# --- Security headers ---
<IfModule mod_headers.c>
    Header unset X-Powered-By
</IfModule>
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 hidden dotfiles ---
<Files ~ "^\.">
    Require all denied
</Files>

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

MMCT - 2023