每当我尝试通过 .htm 扩展名访问我的任何网页时,都会导致 500 服务器错误,尽管网页可以在没有 ant 扩展名或 .html 扩展名的情况下访问,这对我来说很重要,因为我的一些页面与其他网站链接使用 .htm 扩展名并且每当使用单击这些链接时,页面重定向到 500 内部服务器错误,我无法删除这些链接,也无法使用 .html 扩展名重定向它们
我的网站是http://www.gautampolymers.com
我的 .htaccess 文件是
# RewriteBase /
## Begin - Joomla! core SEF Section.
#RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
#
# If the requested path and file is not /index.php and the request
# has not already been internally rewritten to the index.php script
RewriteCond %{REQUEST_URI} !^/index\.php
# and the request is for something within the component folder,
# or for the site root, or for an extensionless URL, or the
#requested URL ends with one of the listed extensions
RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|htm?|feed|pdf|vcf|raw))$ [NC]
and the requested path and file doesn't directly match a physical file
RewriteCond %{REQUEST_FILENAME} !-f
# and the requested path and file doesn't directly match a physical folder
RewriteCond %{REQUEST_FILENAME} !-d
# internally rewrite the request to the index.php script
RewriteRule .* index.php [L]
>#