Skip to content
This repository was archived by the owner on Nov 17, 2022. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions build/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ http {

{% for page in site.redirect_pages %}
{% for redirect in page.previous_url %}
rewrite ^/{{ redirect | remove_first: '/' }}(\.html)?$ $proto://$host_and_port/{{ page.url | remove_first: '/' | replace: '.html', '' }} redirect;
rewrite ^/{{ redirect | remove_first: '/' }}(\.html)?$ $proto://$host_and_port/{{ page.url | remove_first: '/' | replace: '.html', '' }} permanent;
{% endfor %}
{% endfor %}

Expand Down Expand Up @@ -205,7 +205,7 @@ http {
rewrite ^/tutorial/chapter-\d$ $proto://$host_and_port/start/introduction permanent;

# Redirect .html extension
rewrite ^/(.*)\.html$ $proto://$host_and_port/$1 redirect;
rewrite ^/(.*)\.html$ $proto://$host_and_port/$1 permanent;

# Redirect the Sidekick Enterprise Authentication articles
rewrite ^/sidekick/user-guide/enterprise-auth/intro $proto://$host_and_port/sidekick/intro/introduction permanent;
Expand Down