2013-08-26 17 views
-2

每當我嘗試通過.htm擴展名訪問我的任何網頁時,它將導致500服務器錯誤,儘管無法使用螞蟻擴展名或.html擴展名訪問網頁,這對我來說很重要,因爲我的一些頁面與其他帶.htm擴展名的網站鏈接,無論何時使用點擊這些鏈接,頁面重定向到500內部服務器錯誤,我都無法刪除這些鏈接,並且無法使用.html擴展名重定向它們使用.htm重定向到Joomla中的500內部服務器錯誤的頁面

我的網站是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] 
># 

回答

0

Joomla整理了.html擴展本身。

我會建議你創建一個名爲隱藏,然後創建鏈接到你想要的頁面新的菜單項的新菜單。然後,只需鏈接無論你試圖鏈接到新的菜單項,例如:

index.php/news 

一定要開始你的鏈接與index.php

+0

先生其實你不懂我的問題,有些我的網頁(http://www.gautampolymers.com/products/solar-light.htm)鏈接到其他網站,但它導致500錯誤,但如果我用html替換.htm,它工作正常,它可以不會在其他頁面上重定向 – user2716900

相關問題