Hello, i have installed and configured php 7.4/apache, everything works fine, i want to move my website to nginx, i tried, converted htaccess rules for nginx too, website loads fast, without any problem BUT when i am trying to log into users panel on website if i type correct information it redirects to main page/login page, if i type wrong credentials i get a normal error like check your password.
Does anyone have some kind of information/suggestion how to solve it?
.htaccess
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/admincp/$ [NC]
RewriteRule ^([a-zA-Z0-9\-\_]+)/([a-zA-Z0-9\-\_]+)/([a-zA-Z0-9\/\-\_]+)/?$ index.php?page=$1&subpage=$2&request=$3 [QSA]
RewriteRule ^([a-zA-Z0-9\-\_]+)/([a-zA-Z0-9\-\_]+)/?$ index.php?page=$1&subpage=$2 [QSA]
RewriteRule ^([a-zA-Z0-9\-\_]+)/?$ index.php?page=$1 [QSA]
<Files ~ "\.zip$">
Order allow,deny
Deny from all
</Files>
After convert for nginx
`# nginx configuration by winginx.com
location ~ /admincp/$ {
}
location / {
rewrite ^/([a-zA-Z0-9-_]+)/([a-zA-Z0-9-_]+)/([a-zA-Z0-9\/-_]+)/?$ /index.php?page=$1&subpage=$2&request=$3;
rewrite ^/([a-zA-Z0-9-_]+)/([a-zA-Z0-9-_]+)/?$ /index.php?page=$1&subpage=$2;
rewrite ^/([a-zA-Z0-9-_]+)/?$ /index.php?page=$1;
}
location ~ .zip$ {
deny all;
}`