2014-03-27 158 views
1

,而我通过URL迁移我的数据库中的笨:主机名/项目名称/ API /迁移/ 错误显示为图中所示Internal Server ErrorCodeIgniter的数据库迁移错误

请帮我解决

+0

什么在这个网址'hostname/project-name/api/migrate /'?它假设要做什么? –

+0

这将加载目录中的迁移文件,并将迁移php文件中定义的表格 – droidev

+0

请参阅Apache'error_log'文件。它应该包含特定的错误。 –

回答

0

尝试将此代码添加到.htaccess文件。我认为它应该有帮助

<IfModule mod_rewrite.c> 
RewriteEngine On 
#RewriteBase /hafer 

RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^(.*)$ index.php?/$1 [L] 
</IfModule> 

<IfModule !mod_rewrite.c> 
ErrorDocument 404 /index.php 
</IfModule> 

AddDefaultCharset UTF-8 
AddType text/x-component .htc. 

AddType video/ogg .ogv 
AddType video/mp4 .mp4 
AddType video/webm .webm