Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am facing a strange problem.

On my WHM/Cpanal server (Apache 2.2 MPM with FastCGI PHP 5.3+Xcache) any url that ends with php followed by anything random works. For example:

domain.com/x.php/adjajdasda or domain.com/x.php/randomthing

They all load x.php.

It works server wide and I am clueless on how to fix this. This has created a lot of duplicate content in Google.

I have looked at the obvious httpd.conf, php.conf and I can't find anything wrong.

Please help!

share|improve this question
It's supposed to work this way. If you don't want this to happen, you need to fix your web application. –  Michael Hampton Mar 21 '13 at 20:16
Why would it work this way? Aren't arguments/URL Rewrites for this? Is there something that points to this as the way it's supposed to work? How would one fix this in for example in a php file with just <?php print "hello world"; ?> –  john901 Mar 21 '13 at 20:19
In the above case with only x.php there is no PATH_INFO. Otherwise PATH_INFO is whatever I type after x.php. After your comment I did search on that and I found references to confirming what you said. Thanks. However, now how do I fix this? –  john901 Mar 21 '13 at 20:31
Have your application send 301 redirects. –  Michael Hampton Mar 21 '13 at 20:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.