php - Godaddy Error - No input file specified, on symfony1.4 project -
this question has answer here:
- no input file specified 9 answers
searched forums, tried everything, couldn’t work. host godaddy. when go site.com/backend.php/... , says no input file specified. knowing site.com/index.php/... work how fix this?
thanks.
my .htaccess set to:
options +followsymlinks +execcgi <ifmodule mod_rewrite.c> rewriteengine on # uncomment following line, if having trouble # getting no_script_name work #rewritebase / # skip files .something #rewritecond %{request_uri} \..+$ #rewritecond %{request_uri} !\.html$ #rewriterule .* - [l] # check if .html version here (caching) rewriterule ^$ index.html [qsa] rewriterule ^([^.]+)$ $1.html [qsa] rewritecond %{request_filename} !-f # no, redirect our front web controller rewriterule ^(.*)$ index.php [qsa,l] </ifmodule>
just modifiy .htaccess file :
options +followsymlinks +execcgi <ifmodule mod_rewrite.c> rewriteengine on # uncomment following line, if having trouble # getting no_script_name work rewritebase / # skip files .something #rewritecond %{request_uri} \..+$ #rewritecond %{request_uri} !\.html$ #rewriterule .* - [l] # check if .html version here (caching) rewriterule ^$ index.html [qsa] rewriterule ^([^.]+)$ $1.html [qsa] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d # no, redirect our front web controller rewriterule ^(.*)$ index.php?/$1 [l] </ifmodule>
and work fine!
Comments
Post a Comment