【问题标题】:Page with .htm redirect to 500 internal server error in JoomlaJoomla 中带有 .htm 的页面重定向到 500 内部服务器错误
【发布时间】:2013-08-26 05:28:55
【问题描述】:

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

【问题讨论】:

    标签: url joomla server-error


    【解决方案1】:

    Joomla 会自行整理 .html 扩展名。

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

    index.php/news
    

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

    【讨论】:

    • 先生其实你没有理解我的问题,我的一些页面(gautampolymers.com/products/solar-light.htm)链接到其他网站,但是会导致500错误,但是如果我用html替换.htm工作正常,并且无法在其他页面上重定向
    猜你喜欢
    • 2015-10-10
    • 1970-01-01
    • 2012-11-14
    • 2013-09-15
    • 1970-01-01
    • 1970-01-01
    • 2015-06-15
    • 1970-01-01
    • 2013-01-30
    相关资源
    最近更新 更多