我想用的.htaccess添加一個文件結尾(.KML)的URL,但它不工作使用.htaccess添加文件結尾?
URL是http://resihop.nu/kml 我想這是http://resihop.nu/kml.kml這是我的嘗試:
重寫規則^ kml.kml $ KML
這裏是我的全部.htacess:
# Turn on URL rewriting
RewriteEngine On
# Installation directory
RewriteBase/
# Protect hidden files from being viewed
<Files .*>
Order Deny,Allow
Deny From All
</Files>
# Protect application and system files from being viewed
RewriteRule ^(?:application|modules|system)\b.* index.php/$0 [L]
# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Rewrite all other URLs to index.php/URL
RewriteRule .* index.php/$0 [PT]
RewriteRule ^kml\.kml$ kml
不,我不害怕:/ – Himmators 2010-12-16 12:26:34