RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

Redirect /index https://wwdemosite.com/Empire_Ranch/

RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://wwdemosite.com/Empire_Ranch/$1 [R,L]

<IfModule mime_module>
  AddHandler application/x-httpd-php81 .php
</IfModule>