带有.htm的页面重定向到Joomla中的500内部服务器错误

时间:2013-08-26 05:28:56

标签: url joomla server-error

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

1 个答案:

答案 0 :(得分:0)

Joomla自行整理.html扩展名。

我建议您创建一个名为隐藏的新菜单,然后创建一个链接到您希望的页面的新菜单项。然后,只需将您尝试链接的内容链接到新菜单项,例如:

index.php/news

请务必开始链接index.php