Skip to content

Pathname information and the AcceptPathInfo directive

By default, Apache does not allow URLs to contain trailing pathname information after a file name. On ruachost.com, you can enable this behavior using the AcceptPathInfo directive in your .htaccess file or Apache configuration.

Pathname information refers to extra data appended to a URL after a file name.

Example:

http://www.example.com/page.html/pathinfo
  • page.html → the requested file.
  • /pathinfo → trailing pathname information.

By default, Apache returns a 404 Not Found error when such URLs are requested.

Some third‑party applications (e.g., Moodle course management system) rely on pathname information in URLs. Without enabling it, these applications may not function correctly.

Add the following line to your .htaccess file:

AcceptPathInfo On

To turn it off:

AcceptPathInfo Off