我将js和css加载到我的小项目中时遇到问题。它说未找到。请帮帮我怎么做。
这是我的页脚所在:
<script type="text/javascript" src="<?php echo base_url(); ?>datatables/media/js/jquery.js"></script>
<script type="text/javascript" src="<?php echo base_url(); ?>datatables/media/js/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="<?php echo base_url(); ?>bootstrap-master/docs/assets/js/ie10-viewport-bug-workaround.js"></script>
<script type="text/javascript" src= "<?php echo base_url(); ?>assets/js/jquery.js"></script>
<script type="text/javascript" src= "<?php echo base_url(); ?>assets/js/jquery-ui.min.js"></script>
<script type="text/javascript" src= "<?php echo base_url(); ?>assets/js/boostrap.js"></script>
<script src= "<?php echo base_url(); ?>assets/js/boostrap.min.js"></script>
<script type="text/javascript" src="<?php echo base_url(); ?>bootstrap-master/docs/assets/js/ie-emulation-modes-warning.js"></script>
<script type="text/javascript" src="<?php echo base_url('assets/js/jquery.validate.js')?>"></script>
我的htaccess文件。
<IfModule mod_rewrite.c>
RewriteEngine On
# !IMPORTANT! Set your RewriteBase here and don't forget trailing and leading
# slashes.
# If your page resides at
# http://www.example.com/mypage/test1
# then use
# RewriteBase /mypage/test1/
RewriteBase /DepEd
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
# If we don't have mod_rewrite installed, all 404's
# can be sent to index.php, and everything works as normal.
# Submitted by: ElliotHaughin
ErrorDocument 404 /index.php
</IfModule>
答案 0 :(得分:1)
您可以尝试通过
更改.htaccess吗? <IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
# Removes index.php from ExpressionEngine URLs
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
ErrorDocument 404 index.php
</IfModule>