AcceptPathInfo

Category: How To

imh900
Asked:
2012-03-22 3:48 pm EST

Hits: 1,498
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

You must login before you can ask a follow up question.

You must login before you can submit an answer.

OTHER ANSWERS

0

Tim S.
Staff
9,967 Points
2012-03-22 4:32 pm EST
Hi Rod,

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.

Also, please explain the error in detail as you did here.

If you need further assistance please feel free to contact us.

Thanks!

Tim S

You must login before you can post a comment about this answer.

0

Tim S.
Staff
9,967 Points
2012-03-22 4:35 pm EST
Hi 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

You must login before you can post a comment about this answer.

Like this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!