arasan
(Arasan1289)
1
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.
konapaz
(Konapaz)
2
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
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.
arasan
(Arasan1289)
4
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>’,
),
),