我正在爲我的一個項目使用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]
我會失去了'RewriteBase'指令,大多數應用程序並不需要它 – Phil
GoDaddy的=最糟糕的主持人 –