-2

每当我尝试通过 .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]
>#
4

1 回答 1

0

Joomla 会.html自行整理扩展程序。

我建议您创建一个名为hidden的新菜单,然后创建一个链接到您想要的页面的新菜单项。然后只需将您尝试链接的任何内容链接到新菜单项,例如:

index.php/news

一定要开始你的链接index.php

于 2013-08-26T10:24:00.983 回答