私はCodeIgniterで私のプロジェクトにブートストラップテンプレートを使用しようとしていますが、問題があります。私は、チュートリアルを以下だし、彼は.htaccess
ファイルにこのコンテンツを置く:codeigniterにブートストラップテンプレートを統合できません
RewriteEngine on
RewriteCond $1 !^(index\.php|images|css|fonts|js|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
しかし、私はこのコンテンツと私の.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 /ci_introo/
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
RewriteCond %{REQUEST_URI} ^application.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
#RewriteCond $1 !^(index\.php|public|\.txt)
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>
どのように私はこの問題を解決することができますか?
あなたカントの使用:あなたがしたい すべてはあなたのautoload.php
にURLを追加し、head.php
application/views/head.php
コントローラーのコードでこれを置いていますテンプレートはどういう意味ですか? codeigniterでブートストラップのcssとjsを参照することはできません。それは...ですか???? – kishor10d
私のホームページにブートストラップからの背景イメージを使用できません@ kishor10d –
そのような大きな '' '.htaccess'''を書いている理由を理解できません。 – kishor10d