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

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

Revision as of 11:38, 26 December 2019


https://www.nginx.com/resources/wiki/start/topics/recipes/mediawiki/

    location @rewrite {
        rewrite ^/(.*)$ /index.php?title=$1&$args;
    }
    location @rewrite {
	rewrite ^/(.*)$ /index.php;
    }


See also

Advertising: