我正在尝试从我们的网址中删除某个字符串“.html”
当前示例网址:
至:
我当前的 htaccess 文件是:
############################################
## enable rewrites
Options +FollowSymLinks
RewriteEngine on
#If request contains ref param
RewriteCond %{THE_REQUEST} \?([^&\ ]+).html= [NC]
#redirect to URL without the html param
RewriteRule ^ %{REQUEST_URI}?%1 [L,R=301]
############################################
## you can put here your magento root folder
## path relative to web root
#RewriteBase /magento/
############################################
## workaround for HTTP authorization
## in CGI environment
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
############################################
## always send 404 on missing files in these folders
RewriteCond %{REQUEST_URI} !^/(media|skin|js)/
############################################
## never rewrite for existing files, directories and links
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
############################################
## rewrite everything else to index.php
RewriteRule .* index.php [L]
</IfModule>
任何帮助,将不胜感激