无法将 .htaccess 集成到 nginx conf

无法将 .htaccess 集成到 nginx conf

我们有 .htaccess 文件,包括:

RewriteEngine On
    # If an existing asset or directory is requested go to it as it is
    RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
    RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
    RewriteRule ^ - [L]
    # If the requested resource doesn't exist, use index.html   
RewriteRule ^ /index.html

使用某些网站或工具将其转换为 nginx 规则后,它仍然不起作用。有人能帮助我吗?

相关内容