Difference between revisions of "Rewrite (nginx.conf)"
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 { | ||
+ | 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
https://www.nginx.com/resources/wiki/start/topics/recipes/mediawiki/
location @rewrite { rewrite ^/(.*)$ /index.php?title=$1&$args; }
location @rewrite { rewrite ^/(.*)$ /index.php; }
Activities[edit]
Related terms[edit]
See also[edit]
- Mediawiki
- Nginx:
nginx -t
,nginx.conf
,/etc/nginx/fastcgi.conf
, Nginx Sample Configurations,server
,ssl_certificate
,redirect
,return
,rewrite
,sendfile
,request_uri
,server_name
,listen
,/etc/nginx/snippets/
,/etc/nginx/sites-enabled/default
- URL redirection, Subdomain redirection, Lambda@Edge: HTTP redirect using lambda handler, Redirect: HTTP status codes 3xx
Advertising: