23cent 发表于 2012-4-21 13:06:21

.htaccess问题

使用:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /ci/index.php/$1
之后,
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/#.*$/
求解,大哥们帮看看啊!!!


页: [1]
查看完整版本: .htaccess问题