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

From wikieduonline
Jump to navigation Jump to search
 
(10 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/
  
<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 ==
 +
* Read https://serverfault.com/questions/tagged/rewrite?tab=Votes
 +
 +
== Related terms ==
 +
* <code>[[proxy_pass]]</code>
 +
* [[URL redirection]]
 +
* [[return]]
  
 
== See also ==
 
== See also ==
 
* [[Mediawiki]]
 
* [[Mediawiki]]
* {{nginx}}
+
* {{nginx.conf}}
* {{PHP}}
+
* {{URL redirection}}
 +
 
 +
[[Category:Nginx]]

Latest revision as of 10:48, 21 June 2023

Advertising: