Skip to content

Instantly share code, notes, and snippets.

@reatlat
Created March 5, 2019 02:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reatlat/8154731420dc11218857e74e83dffd67 to your computer and use it in GitHub Desktop.
Save reatlat/8154731420dc11218857e74e83dffd67 to your computer and use it in GitHub Desktop.
server {
...
# Include RankMath redirects config to your NGINX server config
include /path-to-public_html/rankmath_redirects.conf*;
...
}
# Created by Rank Math
# Tue, 05 Mar 2019 01:52:36 +0000
# Rank Math 1.0.18 - https://rankmath.com/
location ~ /rankmath_redirects.conf {
deny all;
access_log off;
log_not_found off;
}
rewrite ^old-link-path https://example.com/new-link-path/ permanent;
# Rank Math Redirections END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment