Difference between revisions of "Rewrite (nginx.conf)"

From wikieduonline
Jump to navigation Jump to search
Line 3: Line 3:
 
https://www.nginx.com/resources/wiki/start/topics/recipes/mediawiki/
 
https://www.nginx.com/resources/wiki/start/topics/recipes/mediawiki/
  
<pre>
 
    location @rewrite {
 
        rewrite ^/(.*)$ /index.php?title=$1&$args;
 
    }
 
</pre>
 
  
<pre>
+
    location @rewrite {
    location @rewrite {
+
        rewrite ^/(.*)$ /index.php?title=$1&$args;
rewrite ^/(.*)$ /index.php;
+
    }
    }
+
 
</pre>
+
    location @rewrite {
 +
rewrite ^/(.*)$ /[[index.php]];
 +
    }
 +
 
 +
 
  
 
== Activities ==
 
== Activities ==

Revision as of 16:40, 26 August 2021

Advertising: