phpnew Posted April 6, 2012 Share Posted April 6, 2012 So far I found that if the server is configured to have PHP run in Apache module, I can use AcceptPathInfo Off in .htaccess to turn PATH_INFO off so URLs like page.php/something return 404 (even in shared hosting). Otherwise page.php/something would return the content of page.php which is what I don't want. The trouble I have is with servers that have PHP configured in CGI module. Here AcceptPathInfo Off in .htaccess has no effect. Is there any way to turn this OFF in PHP as CGI environment (shared hosting)? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/260482-if-using-php-as-cgi-how-to-turn-path_info-off/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.