AcceptPathInfo
Hi,
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)?
Thanks,
Rod
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)?
Thanks,
Rod
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.
Thanks!
Tim S