For example for Zend Framework 1 i used the following:
/var/zpanel/hostdata/username/public_html/panel.domain.com/.htaccess
This should redirect all traffic hitting panel.domain.com into the public directory with the correct parameters in the url remaining in place.
/var/zpanel/hostdata/username/public_html/panel.domain.com/public/.htaccess
This should then route requests not matching an image / css / js / file to the index.php inside /public for the framework to handle.
Hope this helps
/var/zpanel/hostdata/username/public_html/panel.domain.com/.htaccess
Code:
RewriteEngine on
## If your framework is in a subfolder add the folder to RewriteBase
RewriteBase /
RewriteRule ^(.*)$ ./public/$1 [L]
This should redirect all traffic hitting panel.domain.com into the public directory with the correct parameters in the url remaining in place.
/var/zpanel/hostdata/username/public_html/panel.domain.com/public/.htaccess
Code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
This should then route requests not matching an image / css / js / file to the index.php inside /public for the framework to handle.
Hope this helps