commit 6e982693b843bd35ea27e1f0099176052d627220
parent f90a3e602b4d380e1a9e8b0e5a4043b0702eb7c6
Author: Oscar Benedito <oscar@oscarbenedito.com>
Date: Sat, 1 Jan 2022 21:21:37 +0100
Add line to print Apache redirects config
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/gensite.py b/gensite.py
@@ -111,6 +111,8 @@ def set_redirect(src, dst):
'<a href="/{}">https://oscarbenedito.com/{}</a>.</p>'
'</body></html>'.format(dst, dst, dst, dst))
log('I', 'redirect /{} => /{}', src, dst)
+ # uncomment next line to print apache redirects
+ # sys.stdout.write('Redirect permanent "/{}" "/{}"\n'.format(src, dst))
def read_headers(text):