Community Support

AcceptPathInfo

I have a trouble when using PHP handlers like this:
AddHandler application/x-httpd-php5 .html .htm
AddType x-mapp-php5 .html .htm

I need them in order to get my PHP code to work. But this creates a situation where a link with trailing slash (i.e. page.html/) creates a duplicated page which returns many broken links and that goes with no end.

I learned about using AcceptPathInfo which works fine when the server is configured to run in Apache mode. In the case of InMotionHosting the server runs in CGI mode where the OFF setting for AcceptPathInfo in .htaccess does not change anything.

Would anyone know how to turn this Apache feature off (AcceptPathInfo)?

OTHER ANSWERS

Thanks for posting your question. I'm sorry you're having trouble with AcceptPathInfo and turning it off. I'm more than happy to help you.

I've ran some various tests and you are correct, it seems that AcceptPathInfo Off is being ignored. At this point, we'd like you to submit an email request to support@inmotionhosting.com so our systems administrators can review what's going on.

In the email, please be sure to verify your account with the last four digits of the credit card on file or the current AMP password.

Sorry, a higher tier of support reviewed the request, and has determined that the issue is due to your re-write rules in the .htaccess file. He tested this by renaming your current .htaccess file and placing just the acceptpathinfo Off in a new .htaccess file. Once he did this, it functions as you would expect.

This tells us that the re-write rules in the file are affecting the AcceptPathInfo Off line.

I hope this helps! If you need further assistance please feel free to contact us.