小弟用opencart,用的是win虚拟主机,支持rewrite,但是没有httpd.ini,小弟对此不了解,想求仙人帮忙转写下,万分感谢。---------------------------------------------------------------------Options -Indexes
<FilesMatch "\.tpl">
Order deny,allow
Deny from all
</FilesMatch>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\?*$ index.php?_route_=$1 [L,QSA]-----------------------------------------------------------------------
<FilesMatch "\.tpl">
Order deny,allow
Deny from all
</FilesMatch>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\?*$ index.php?_route_=$1 [L,QSA]-----------------------------------------------------------------------
RewriteRule ^(.*)\?*$ index.php?_route_=$1 [N,I]
如不行再试下:
RewriteRule (.*)\?* index.php?_route_=$1 [N,I]