tonyzheng

tonyzheng

这家伙有点懒,还没写个性签名!

  • 财富值5
  • 威望值0
  • 总积分5

个人信息

  • 我用的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
    

    我是哪里配错了么?

实习生 等级规则
5/20
资料完整度
10/100
用户活跃度
0/100

Ta的关注

0

Ta的粉丝

0

Ta的访客

0