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

From wikieduonline
Jump to navigation Jump to search
(Created page with " https://www.nginx.com/resources/wiki/start/topics/recipes/mediawiki/ location @rewrite { rewrite ^/(.*)$ /index.php?title=$1&$args; } location @rewrite...")
 
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
{{lc}}
  
 +
* http://nginx.org/en/docs/http/ngx_http_rewrite_module.html
  
 
https://www.nginx.com/resources/wiki/start/topics/recipes/mediawiki/
 
https://www.nginx.com/resources/wiki/start/topics/recipes/mediawiki/
    location @rewrite {
 
        rewrite ^/(.*)$ /index.php?title=$1&$args;
 
    }
 
  
  
    location @rewrite {
+
    location @rewrite {
rewrite ^/(.*)$ /index.php;
+
        rewrite ^/(.*)$ /index.php?title=$1&$args;
    }
+
    }
 +
 
 +
    location @rewrite {
 +
rewrite ^/(.*)$ /[[index.php]];
 +
    }
 +
 
 +
 
 +
 
 +
== Activities ==
 +
* Read https://serverfault.com/questions/tagged/rewrite?tab=Votes
 +
 
 +
== Related terms ==
 +
* <code>[[proxy_pass]]</code>
 +
* [[URL redirection]]
 +
* [[return]]
 +
 
 +
== See also ==
 +
* [[Mediawiki]]
 +
* {{nginx.conf}}
 +
* {{URL redirection}}
 +
 
 +
[[Category:Nginx]]

Latest revision as of 10:48, 21 June 2023

Advertising: