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 .
.htaccess
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]
.