# Force HTTPS and remove www RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} ^www\. [NC] RewriteRule ^ https://mywebsite.com%{REQUEST_URI} [R=301,L] # Keep existing folders/files working normally RewriteCond %{REQUEST_URI} !^/seller/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ seller/$1 [L] # Homepage RewriteRule ^$ seller/index.php [L] # php -- BEGIN cPanel-generated handler AddHandler application/x-httpd-ea-php74 .php .php7 .phtml # php -- END cPanel-generated handler