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} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\?*$ index.php/$1 [L,QSA]
</IfModule>
and main.php file cointains
'urlManager'=>array(
'urlFormat'=>'path',y 'showScriptName'=>false,
'rules'=>array(
'<controller:\w+>/<id:\d+>'=>'<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
),
),
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 website.org and there its working properly.
what should i do to make the site work on godaddy.
Page 1 of 1
No Input File Specified Yii hosting in shared server godaddy
#2
Posted 23 July 2013 - 05:33 PM
I am not sure, but you could test by remove one of them
RewriteRule ^(.*)\?*$ index.php/$1 [L,QSA]
or
'showScriptName'=>false,
check both of them
RewriteRule ^(.*)\?*$ index.php/$1 [L,QSA]
or
'showScriptName'=>false,
check both of them
Yii is the best php framework in the world!
It is also powerful and flexible for large scale websites
find our demo Yii extension on www.webkit.gr
Is it post useful? please v++ ;)
It is also powerful and flexible for large scale websites
find our demo Yii extension on www.webkit.gr
Is it post useful? please v++ ;)
#3
Posted 24 July 2013 - 03:39 AM
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.
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.
programmer /ˈprəʊgramə/, noun: a device that converts ►coffee into ►code
#4
Posted 24 July 2013 - 10:45 AM
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:
'urlManager'=>array(
'urlFormat'=>'path',
'rules'=>array(
'<controller:\w+>/<id:\d+>'=>'<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
),
),
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:
'urlManager'=>array(
'urlFormat'=>'path',
'rules'=>array(
'<controller:\w+>/<id:\d+>'=>'<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
),
),
Share this topic:
Page 1 of 1