yiqicms易企的apache和ngnix的伪静态的配置

http://www.yiqicms.com/manual/urlset.html

1.apache
如果服务器软件为apache,直接进入后台,点击导航里面的,网站设置,然后点击URL重写,再选择开启URL重写,提交以后,就可以了.
可能出现的错误:如果开启后页面一直打不开,可能是主机商没有开启rewrite_mod,请联系主机商开启此功能。
如果不能正常生成.htaccess到根目录,请点此下载http://www.yiqicms.com/htaccess.txt,下载完成后将htaccess.txt上传至服务器根目录,然后重命名为.htaccess即可。
2.iis
如果服务器软件为iis,请确保服务端安装过ISAPI_Rewrite组件.
然后联系主机提供商,加入以下规则.
RewriteRule ^/article/(.+)\.html$ /article\.php\?name=$1
RewriteRule ^/product/(.+)\.html$ /product\.php\?name=$1
RewriteRule ^/category/([^/_]+)[/]?$ /category\.php\?name=$1
RewriteRule ^/category/([^/]+)_([0-9]+)[/]?$ /category\.php\?name=$1&p=$2
RewriteRule ^/catalog/([^/]+)[/]?$ /catalog\.php\?type=$1
RewriteRule ^/comment\.html$ /comment\.php
RewriteRule ^/sitemap\.xml$ /sitemap\.php
也可以下载此文件:http://www.yiqicms.com/httpd.ini
如果现有组件不可用,请下载此组件:http://down.yiqicms.com/files/ISAPI_Rewrite.rar
3.nginx
如果服务器软件为nginx,请联系主机提供商,加入以下规则
rewrite ^/article\/(.+)\.html$ /article.php?name=$1 last;
rewrite ^/product\/(.+)\.html /product.php?name=$1 last;
rewrite ^/category\/([^/]+)_([0-9]+)[/]? /category.php?name=$1&p=$2 last;
rewrite ^/category\/([^/_]+)[/]? /category.php?name=$1 last;
rewrite ^/catalog\/([^/]+)[/]? /catalog.php?type=$1 last;
rewrite ^/comment.html$ /comment.php last;
rewrite ^/sitemap.xml$ /sitemap.php last;

此条目发表在dedecms参考分类目录。将固定链接加入收藏夹。

发表评论

邮箱地址不会被公开。 必填项已用*标注

您可以使用这些HTML标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>