2014-07-07 41 views
0

我正在爲我的一個項目使用SLIM。我的代碼在我的Localhost和AWS上工作正常。但我無法在Godaddy服務器上託管同一個應用程序。我得到「404」錯誤(沒有輸入文件)無法在Godaddy中使用Slim Framework

My app structure is follows 
Appname 
    Api 
     Slim 
     user.php 

而我從ajax調用服務。我的URL格式 -

example.com/appname/api/user/add

example.com/appname/api/user/edit

但我沒能獲得這些服務。

RewriteEngine on <br> 
RewriteBase/
DirectoryIndex index.php 
RewriteCond $1 !^(index\.php) 
RewriteRule ^(.*)$ index.php/$1 [L] 
+0

我會失去了'RewriteBase'指令,大多數應用程序並不需要它 – Phil

+1

GoDaddy的=最糟糕的主持人 –

回答

0

您確定所需的php版本已安裝。 Slim需要php版本5.3.0或更高版本才能運行。

0

主機文件的WWW文件夾以外的其他並把你的資產和WWW或公用文件夾應用開始文件