我正在使用 OSCLASS 脚本,并且正在使用 .htaccess 来重写 url。OSCLASS 生成的默认 .htaccess 提供了这样的网址 ( http://myhost.com/saleon/vehicles/cars/honda-civic_i28 ) 我想在每个网址的末尾添加“.htm”。所以我的网址看起来像这样(http://myhost.com/saleon/vehicles/cars/honda-civic_i28.htm)。有没有人知道如何在 htaccess 中做到这一点。我的 .htaccess 代码如下:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /saleon/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /saleon/index.php [L]
</IfModule>
谢谢您的帮助。