Hello, I faced the problem of routing on hosting with FastCGI.

On the locale everything works fine, but after uploading to the server with FastCGI I got an error

No input file specified

In all modules except the main page. Googling, found an article that describes how to fix my problem. Article: Like two fingers ... No input file specified .


RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /index.php?$1 [L] 

All modules have earned, but now GET requests are not working above the root of the site. For example, http://сайт/main/category/Razrabotka/?page=2 It is precisely $_GET['page'] does not want to work.

Dump displays only

 Array ( [main/category/Razrabotka/] => ) 

I would be grateful for the correct answer :)

Solution found : instead? in GET you need to do &. Because the routing goes like this: site/?_router=main/blabla/ololol/&page={num}

And in .htaccess /index.php?$1 [L] .

  • Shrek, I figuratively said "cut off." Posted in a solution. - iNeeXT pm

1 answer 1

Try to put more

 DirectoryIndex index.php RewriteBase / <?php phpinfo(); ?> // с хостинга в студию. 

because can on hosting

 register_globals = On safe_mode = On 

And they should be disabled

  • Did not help - iNeeXT
  • PHPinfo wapjobs.ru/?info - iNeeXT
  • No safe_mode and register_globals disabled - iNeeXT
  • Hmm .. through wapjobs.ru/main/category/Razrabotka/&page=4 everything works. But after /? trimmed the whole GET - iNeeXT
  • Where is it trimmed ??? Where you can not get this data if the scripts work out normally? - Artem