I have a apache htaccess file as follow
RewriteEngine on
RewriteRule \.(css|jpe?g|gif|png|js|ico)$ - [L]
RewriteRule ^(admin|install).*$ - [L]
# Rewrite web pages to one master page
RewriteRule ^([^/\.]+)/?$ index.php?page=$1 [QSA,L]
RewriteRule ^([^/\.]+)/([^/]+)/?$ index.php?page=$1&id=$2 [QSA,L]
RewriteRule ^([^/\.]+)/([^/]+)/([^/]+)/? index.php?page=$1&id=$2&subpage=$3 [QSA,L]
I converted to
server {
rewrite /\.(css|jpe?g|gif|png|js|ico)$ last;
rewrite ^/(admin|install).*$ last;
rewrite ^/([^/\.]+)/?$ /index.php?page=$1 last;
rewrite ^/([^/\.]+)/([^/]+)/?$ /index.php?page=$1&id=$2 last;
rewrite ^/([^/\.]+)/([^/]+)/([^/]+)/? /index.php?page=$1&id=$2&subpage=$3 last;
}
Is it correct? I believe there is some problem as it is not working