Hide the .php file extension with IIS URL Rewrite Module

...RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php Or use MultiViews: Options +MultiViews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^\.]+)$ $1.php [NC,L] This removes the extension...





![[HttpException (0x80004005): The length of the URL for this request exceeds the configured maxUrlLength value.]](https://www.saotn.org/wp-content/uploads/2025/06/Length_of_URL_for_request_exceeds_maxUrlLength_value-11-768x422.png)







