> ## Documentation Index
> Fetch the complete documentation index at: https://kb.hosting.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Pathname information and the AcceptPathInfo directive

> Learn to enable pathname info in URLs with the AcceptPathInfo directive, essential for some software.

This article describes when to use the **AcceptPathInfo** Apache directive in an *.htaccess* file. Some software packages require this setting in order to function correctly.

## Pathname information in URLs

By default, URLs cannot contain trailing pathname information. For example, consider the URL *[http://www.example.com/page.html/pathinfo](http://www.example.com/page.html/pathinfo)*. In this URL, *pathinfo* is trailing pathname information, and the Apache web server will return a 404 Not Found error.

However, some third-party software packages, such as the Moodle course management system, use URLs with pathname information, and will not function correctly. To enable pathname information in URLs, you use the **AcceptPathInfo** directive.

To enable pathname information in URLs, add the following line to your *.htaccess* file:

```
AcceptPathInfo On
```

To disable pathname information in URLs, modify the appropriate line in your *.htaccess* file as follows:

```
AcceptPathInfo Off
```

## More information

For more information about the **AcceptPathInfo** directive, please visit [http://httpd.apache.org/docs/2.0/mod/core.html#acceptpathinfo](http://httpd.apache.org/docs/2.0/mod/core.html#acceptpathinfo).

## Related articles

* [Using .htaccess files](/docs/using-htaccess-files)
