# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php81” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php81 .php .php8 .phtml
</IfModule>

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    
    # Rewrite for API, groups, channels and users with prefixes
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(api/u|joing|c|joinc)/(.*)$ index.php?type=$1&username=$2 [L,QSA]
        
    # Rewrite for clean user URLs (like /username)
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} !\.(css|js|png|jpg|jpeg|gif|svg|ico)$ [NC]
    RewriteRule ^([^/]+)$ index.php?type=u&username=$1 [L,QSA]
</IfModule>

# php -- END cPanel-generated handler, do not edit
Options -Indexes