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