-2

拡張子 .htm を使用して Web ページにアクセスしようとすると、常に 500 サーバー エラーが発生します。Web ページには ant 拡張子または .html 拡張子がなくてもアクセスできますが、私のページの一部は他の Web サイトにリンクされているため、これは私にとって重要です。 .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]
>#
4

1 に答える 1