怎么设置网站的URL re-writes URL重写


如图,在 apache中我们这样设置

<VirtualHost *:80>

    DocumentRoot /<path-to-suite>/public
    <Directory /<path-to-suite>/public>
        AllowOverride All
        Order Allow,Deny
        Allow from All
    </Directory>

</VirtualHost>

在1panel中我们如何写这个规则呢

咨询 1Panel 请将板块选到 1Panel,不要放在 Other。

1 个赞

根据这里的帖子(使Nginx服务器支持.htaccess的方法_nginx.htaccess-CSDN博客)

如下配置,不行