Last active
January 29, 2019 14:11
-
-
Save sebastianmoran-mainwp/fb8b89f12062176b8a905e71dd99ccf1 to your computer and use it in GitHub Desktop.
Apache and NGNIX redirects for the readme.html file installed by WordPress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
RewriteRule ^readme\.html$ / [R=301,L] | |
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
rewrite ^/readme.html$ / permanent; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://www.nginx.com/blog/creating-nginx-rewrite-rules/
https://httpd.apache.org/docs/current/mod/mod_rewrite.html