Lockin
我用的apache,Yii2的basic模板,但是出现“The requested URL /site/about was not found on this server.”这种错误是为什么?我在apache里配置了虚拟主机
<VirtualHost *:80> DocumentRoot "D:\wamp\www\basic\web" DirectoryIndex index.php ServerName www.test.com </VirtualHost> <Directory "D:\wamp\www\basic\web"> Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory>
index.php同级目录下创建了.htaccess文件,内容是
Options +FollowSymLinks IndexIgnore */* RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . index.php
我是哪里配错了么?
请问你解决了吗? 我遇到和你同样的问题 我是用advanced模板 也是阿帕奇 虚拟主机