apache tutorial - Pathname Information In URLS - apache - apache web server - apache server - apache2




How to enable pathname information in URLs using the AcceptPathInfo directive

  • By default, URLs cannot contain trailing pathname information. For example, consider the URL 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
click below button to copy the code. By Apache tutorial team
  • To disable pathname information in URLs, modify the appropriate line in your .htaccess file as follows:
AcceptPathInfo Off
click below button to copy the code. By Apache tutorial team

Related Searches to How to enable pathname information in URLs using the AcceptPathInfo directive

Adblocker detected! Please consider reading this notice.

We've detected that you are using AdBlock Plus or some other adblocking software which is preventing the page from fully loading.

We don't have any banner, Flash, animation, obnoxious sound, or popup ad. We do not implement these annoying types of ads!

We need money to operate the site, and almost all of it comes from our online advertising.

Please add wikitechy.com to your ad blocking whitelist or disable your adblocking software.

×