CI框架 wamp环境在载入视图html文件中的js不能正常载入 显示403 求解决办法
初学CI框架,在载入视图中步骤中,html文件正常载入,但外链的CSS和JS不能正常加载。
菜单栏框架举例,检查框架源码时
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<title></title>
<link href="http://localhost/cishop/application/views/styles/general.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<link href="http://localhost/cishop/application/views/js/global.js" rel="stylesheet" type="text/css" />"></script>
<script type="text/javascript" src="http://localhost/cishop/application/views/js/utils.js"></script>
<script type="text/javascript" src="http://localhost/cishop/application/views/js/transport.js"></script>
<style type="text/css">
body {background: #80BDCB;}
点击上面的JS链接后
会显示
You don't have permission to access /cishop/application/views/js/transport.js on this server.
Apache/2.4.9 (Win64) PHP/5.5.12 Server at localhost Port 80
尝试了一些配置wamp方法但没能解决。
希望大神指条明路,谢谢~