PHPnow环境里有2个项目,我把文件名改成了htdocs1和htdocs2,这2个项目我把其中一个改成htdocs就可以在浏览器里输入
localhost访问了,现在只能想访问哪个就把哪个的文件名改成htdocs。但是我不想手动更改文件夹名,能打开2个项目,有什么办法吗?

解决方案 »

  1.   

    把两个项目放入htdocs目录中。以 localhost/目录名  访问
    或者配置虚拟主机
      

  2.   

    http://localhost/htdocs1
    http://localhost/htdocs2提示这个:
    Not Found
    The requested URL /index.php/首页 was not found on this server.Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
      

  3.   

    你的入口文件是什么? http://localhost/htdocs1/+入口文件  试试。
      

  4.   

    C:\PHPnow\htdocs\
    里面htdocs1和htdocs2
      

  5.   

    http://localhost/htdocs1/index.php/%E9%A6%96%E9%A1%B5
    http://localhost/htdocs2/index.php/%E9%A6%96%E9%A1%B5这样能打开,但是好像还有点错误
      

  6.   

    这是当然的。以前你是localhost,明显不一样了。改改你的代码即可。
      

  7.   

    phpnow不是可以添加虚拟主机么?随便添加一个,比如,a.a,然后修改C:\WINDOWS\system32\drivers\etc\hosts这个文件。就可以用 http://a.a/访问你的项目了。
      

  8.   


    最方便了,,不了解phpnow,apache通过修改httpd.conf即可
      

  9.   

    用别的集成环境吧,直接放同一级的目录下就好了,直接localhost后跟文件名。