![](/img/trans.png)
[英]Failed to load resource: the server responded with a status of 500 (Internal Server Error) - Angularjs and Codeigniter
[英]CodeIgniter : Failed to load resource: the server responded with a status of 500 (Internal Server Error)
在本地服務器中,我的Codeigniter
項目很好,在這里沒問題,但是在將其升級到Web服務器時出現內部服務器錯誤
我的.htaccess
# index file can be index.php, home.php, default.php etc.
DirectoryIndex index.php
# Rewrite engine
RewriteEngine On
# condition with escaping special chars
RewriteCond $1 !^(index\.php|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [QSA,L]
並且所有目錄權限都設置為755 。
並且所有目錄權限都設置為644 。
我的站點在控制台日志中給出以下消息
加載資源失敗:服務器響應狀態為500(內部服務器錯誤)
我怎么解決這個問題 ? 請有人幫我。
請嘗試用以下內容替換htaccess內容:
RewriteCond $ 1上的RewriteEngine!^(index.php | application / path_to_your_theme |圖像|資產| robots.txt)RewriteRule ^(。*)$ index.php / $ 1 [L]
並且不要忘記替換application / path_to_your_theme
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.