Hmm.
Here is my complete .htaccess:
)in the panel/ folder):
Here is my complete .htaccess:
)in the panel/ folder):
Code:
RewriteEngine on
# Force SSL - Always first!
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://cp.domain.com/$1 [R,L]
# Standard Sentora Rewrite Ruleset
RewriteRule ^api/([^/\.]+)/?$ bin/api.php?m=$1 [L]
RewriteRule ^apps/([^/\.]+)/?$ etc/apps/$1 [L]
# Optionally you can uncomment the below line and configure your domain to only allow access from the FQDN.
%{SERVER_NAME} !^cp\.domain\.com$
^ - [F]
# Deny access to some file types/directories
RewriteRule ^/?(\.git|\.tx|SQL|config|logs|temp|tests|program\/(include|lib|localization|steps)) - [F]
RewriteRule ^(etc/tmp|etc/zppy-cache|/etc/lib/pChart2/cache|etc/build) - [F,L,NC]
# Disable index listing
Options -Indexes