上传到aiimage文件夹
检测php是否开启gd库,如果没有开启,需要在php配置文件里开启,具体可以百度相关教程
如果开启,就配置伪静态。
apache的伪静态
RewriteRule ^(aiimage)/(.*).png$ $1/url.php?title=$2
ngnix的伪静态
location /aiimage {
rewrite ^/(aiimage)/(.*).png$ /$1/url.php?title=KaTeX parse error: Expected 'EOF', got '}' at position 4: 2; }̲ 或者: rewrite ^/… /$1/url.php?title=$2;
资源来源 https://qula.cc/