nginx perm redir
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
node_modules
|
||||
public
|
||||
public
|
||||
db.json
|
||||
@@ -5,7 +5,7 @@ server {
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html index.htm;
|
||||
rewrite ^(/tags/)(.*) https://$host/tag/$2;
|
||||
rewrite ^(/tags/)(.*) https://$host/tag/$2/ permanent;
|
||||
rewrite ^(/rss) /rss.xml break;
|
||||
absolute_redirect off;
|
||||
real_ip_header X-Forwarded-For;
|
||||
|
||||
Reference in New Issue
Block a user