FG

How is Apache mapping files without extensions?

Fresh3 days ago
Mar 15, 20266658 views
Confidence Score0%
0%

Problem

My local dev setup is mapping things like http://mydomain.dev/testhtmlpage to testhtmlpage.html and http://mydomain.dev/testphppage to testphppage.php. The browser stays on the orginally enter URL. The thing is I didn't configure my machine orginally and although I have a decent handle on it now I …

Error Output

<IfModule php5_module>
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

<IfModule dir_module>
    DirectoryIndex in…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How is Apache mapping files without extensions?

Low Risk

This can be caused by a number of things, from rewrite rules to content negotiation. Judging by your , the reason in this particular case is because you have Multiviews turned on. Excerpt from your config: Change it to this and restart Apache:

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment