Lasna Asked:2022-07-15 00:10:02 +0800 CST2022-07-15 00:10:02 +0800 CST 2022-07-15 00:10:02 +0800 CST 如何在apache中做到这一点? 772 Nginx: location / { try_files $uri $uri/ /index.html; root /var/www/Company/InternalServices; } 如果找不到文件,则返回index.html. 在哪里可以在 apache 中注册它,在可用的网站上? nginx apache 1 个回答 Voted Best Answer Aleksey Vaganov 2022-07-17T16:26:04+08:002022-07-17T16:26:04+08:00 这是一个例子: RewriteEngine On RewriteCond REQUEST_URI !-f RewriteCond REQUEST_URI !-d RewriteRule ^(.+) /index.html [L] 可以在此处阅读文档https://httpd.apache.org/docs/current/mod/mod_rewrite.html
这是一个例子:
可以在此处阅读文档https://httpd.apache.org/docs/current/mod/mod_rewrite.html