未找到请求的 URL 在此服务器上未找到
Not Found The requested URL was not found on this server
我在 apache 服务器上有一个前端应用程序。
当我转到 BASE URL 时很好,但是如果转到 (Base URL)/example 并刷新此显示下一条消息:
未找到
在此服务器上找不到请求的 URL /示例。
在我的服务器 linux (Centos 7) /var/www/html 上有包含以下内容的“.htaccess”文件:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
</IfModule>
Somehelp 如何解决这个问题?
谢谢!
I have the next wrapper <Directory "/var/www/html"> Options Indexes FollowSymLinks AllowOverride None Require all granted </Directory>
您拥有 .htaccess
文件的特定目录似乎没有启用 .htaccess
覆盖。
在<Directory "/var/www/html">
容器中应该是AllowOverride All
。
然后重新启动 Apache 以使更改生效。
我在 apache 服务器上有一个前端应用程序。 当我转到 BASE URL 时很好,但是如果转到 (Base URL)/example 并刷新此显示下一条消息:
未找到 在此服务器上找不到请求的 URL /示例。
在我的服务器 linux (Centos 7) /var/www/html 上有包含以下内容的“.htaccess”文件:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
</IfModule>
Somehelp 如何解决这个问题? 谢谢!
I have the next wrapper
<Directory "/var/www/html"> Options Indexes FollowSymLinks AllowOverride None Require all granted </Directory>
您拥有 .htaccess
文件的特定目录似乎没有启用 .htaccess
覆盖。
在<Directory "/var/www/html">
容器中应该是AllowOverride All
。
然后重新启动 Apache 以使更改生效。