提交 da0b7575 编写于 作者: M Mu Li

add htaccess.sh

上级 20ee352e
#!/bin/bash
cd $1
OUT=.htaccess
echo "ErrorDocument 404 https://zh.gluon.ai/404.html" >$OUT
echo "RewriteEngine On" >>$OUT
echo "RewriteCond %{SERVER_PORT} 80" >>$OUT
echo "RewriteRule ^(.*)$ https://zh.gluon.ai/$1 [R,L]" >>$OUT
for f in chapter*/*; do
echo "Redirect /$f /$(basename $f)" >>$OUT
done
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册