|
使用:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /ci/index.php/$1 [L]
之后,
config.php: $config['base_url'] = "http://localhost/ci/";
view: <script src="<?php echo base_url().'html/js/jquery-1.4.4.min.js'?>" type="text/javascript"></script>
浏览器源代码:<script src="http://localhost/ci/html/js/jquery-1.4.4.min.js"></script>载入路径对啦啊,
但我使用ajax提交总是跳转到这里 http://localhost/#.*$/
求解,大哥们帮看看啊!!!
|
|