Problema con nginx mod rewrite. Realmente aprecio la ayuda. Pasé horas en ese tema
Problema con la reescritura de url.
Quiero reescribir desde bangots.eu/?subtopic=highscores bangots.eu/?subtopic=houses
para conseguir esto
bangots.eu/highscores bangots.eu/houses
Tengo este codigo
rewrite ^/([^/]*).html$ /?subtopic=$1 last;
y 2 cosas están mal con eso. 1. No quiero la extensión .html 2. Esta reescritura me lleva de bangots.eu/highscores.html a bangots.eu/?subtopic=highscores. Quiero revertirlo. Gracias por cualquier ayuda!
Esa es parte de mi / etc / nginx / sites-available / default
server {
        listen 80 default_server;
        listen [::]:80 default_server ipv6only=on;
        root /usr/share/nginx/html;
        index index.html index.htm index.php;
        # Make site accessible from http://localhost/
        server_name bangots.eu;
        location / {
                # First attempt to serve request as file, then
                # as directory, then fall back to displaying a 404.
                try_files $uri $uri/  index.php$is_args$args =404;
                # Uncomment to enable naxsi on this location
                # include /etc/nginx/naxsi.rules
                rewrite ^/([^/]*).html$ /?subtopic=$1 last;
        }
                    
                        mod-rewrite
                                rewrite
                                url-rewriting
                                
                    
                    
                        Szmycu
fuente
                
                
            fuente
