iis下的伪静态规则

Opencart中文帮助文档,Opencart中文技术咨询,Opencart安装,Opencart教程

版主: kaian, Huagu

iis下的伪静态规则

帖子longteng » 2012-08-12 23:28

# 1.To use URL Alias you need to be running apache with mod_rewrite enabled.

# 2. In your opencart directory rename htaccess.txt to .htaccess.

# For any support issues please visit: http://www.opencart.com

# For security reasons, Option followsymlinks cannot be overridden.
#Options +FollowSymlinks
Options +SymLinksIfOwnerMatch

# Prevent Directoy listing
Options -Indexes

# Prevent Direct Access to files
<FilesMatch "\.(tpl|ini)">
Order deny,allow
Deny from all
</FilesMatch>

# SEO URL Settings
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^abc.com [NC]
RewriteRule ^(.*)$ http://www.abc.com/$1 [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\?*$ index.php?_route_=$1 [L,QSA]

本来linux是用.htaccess填上以上的规则,那IIS的伪静态应该是怎么样的?上面的好像不可以,求大神解答
longteng
 
帖子: 1
注册: 2012-08-12 23:25

Re: iis下的伪静态规则

帖子Alex » 2012-08-15 15:39

http://www.speedphp.com/thread-3730-1-1.html

iis的设置以及规则不一样,你可以参考下以上的链接.
深圳天宇林 http://www.tylsoft.com ,专业电子商务方案提供商
---------------------------------------------------------------------------------------
非商业用户谢绝私下邮件,qq联系,请在论坛上发帖交流。
Alex
 
帖子: 720
注册: 2009-12-29 13:05


回到 Opencart 使用幫助

在线用户

正在浏览此版面的用户:没有注册用户 和 1 位游客

cron