No Input File Specified Yii

i have hosted my site in godaddy shared linux hosting and my .htaccess file contains

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} &#33;-f

RewriteCond %{REQUEST_FILENAME} &#33;-d

RewriteRule ^(.*)&#092;?*&#036; index.php/&#036;1 [L,QSA]


and main.php file cointains


'urlFormat'=&gt;'path',y 'showScriptName'=&gt;false,







my home page is loading correctly but when i click in any link i am getting a "no input file specified" error

i hosted the same website in and there its working properly.

what should i do to make the site work on godaddy.

I am not sure, but you could test by remove one of them

RewriteRule ^(.)\?$ index.php/$1 [L,QSA]



check both of them

This sounds a bit like an nginx error … could you perhaps show us the complete and exact error message? Otherwise, you might find this thread helpful.

Edit: Check this thread as well. This might actually be the solution to your problem as the error message is the exact same you are getting.

got the work finished thanks to Da:Sourcerer and KonApaz.

My .htaccess file is:

RewriteEngine on

if a directory or a file exists, use it directly

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

otherwise forward it to index.php

RewriteRule ^.*$ /index.php? [L]

and main.php is: