我想在我的nginx服务器上使用Mibew,但它需要.htaccess与Apache服务器。 如何在我的网站上使用此脚本? 我已经尝试转换默认的.htaccess,但它仍然无法正常工作...
答案 0 :(得分:0)
添加到您的网站配置(例如:/etc/nginx/conf.d/mysite.com.conf)
location /mibew/ {
rewrite ^/mibew/$ /mibew/index.php permanent;
rewrite ^/mibew/install\.php/(.*)$ /mibew/install.php?$1 last;
rewrite ^/mibew/index\.php/(.*)$ /mibew/index.php?$1 last;
}