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

From wikieduonline
Jump to navigation Jump to search
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
{{lc}}
 +
 
* http://nginx.org/en/docs/http/ngx_http_rewrite_module.html
 
* 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 ==
 
== Activities ==
 
* Read https://serverfault.com/questions/tagged/rewrite?tab=Votes
 
* 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.conf}}
 
* {{nginx.conf}}
* {{nginx}}
+
* {{URL redirection}}
* {{PHP}}
 
  
 
[[Category:Nginx]]
 
[[Category:Nginx]]

Latest revision as of 10:48, 21 June 2023

Advertising: