0
鏈接您好,這是我的htaccess代碼排除mod_rewrite的
Options All -Indexes
ErrorDocument 404 /404.php
FileETag MTime Size
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /lang/
RewriteRule ^sitemap\.xml$ index.php [L]
RewriteRule ^(.*)(\.html|\.htm)$ index.php [L]
RewriteRule ^(.*)(\.rss|\.atom|\.txt)$ index.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/?$ index.php [L]
</IfModule>
<IfModule mod_expires.c>
ExpiresActive on
ExpiresByType image/gif "access plus 1 months"
ExpiresByType image/jpeg "access plus 1 months"
ExpiresByType image/png "access plus 1 months"
ExpiresByType text/css "access plus 1 months"
ExpiresByType application/x-javascript "access plus 1 months"
</IfModule>
我有這樣的接觸形式
http://www.example.com/lang/contact-se
當用戶使用表單和聯繫
重定向到
http://www.example.com/lang/contact-se.html
,並給我的錯誤頁面沒有找到
,如何排除僅從重寫此鏈接重定向到.HTML
這是一個Vivvo Cms感謝您的回覆我解決了這個問題非常感謝 – Zeroic