首页
导航
博客
电子书
算法
众创
代码
随贴
关于我们
您好,欢迎来到码863代码分享网! 请
[登录]
/
[注册]
搜 索
标题:
*
140
字
TAG标签:
(用空格隔开)
30
字
恢复历史版本:
请选择分类
html
python
javascript
php
sql
c
c++
c#
java
plain
所有人可见
仅自己可见
编辑器:UEditor
编辑器:TinyMCE
编辑器:Editor.md
HTML转MD
HTML转MD2
<p style="font-family: Verdana,Arial,Tahoma; color: #333333; background-color: #ffffff; line-height: 25px;">1:我们可以在server中增加以下内容 </p><p style="font-family: Verdana,Arial,Tahoma; color: #333333; background-color: #ffffff; line-height: 25px;"> location / {<br/> include rew.conf; #<span style="font-family: Verdana,Arial,Tahoma; color: #333333; background-color: #ffffff; line-height: 25px;"> 加到ecshop配置部分</span> <br/> }</p><p style="font-family: Verdana,Arial,Tahoma; color: #333333; background-color: #ffffff; line-height: 25px;"> 这个很显然,我们是将ecshop nginx下的url重写规则写在了rew.conf中。</p><p style="font-family: Verdana,Arial,Tahoma; color: #333333; background-color: #ffffff; line-height: 25px;"> 2:编写nginx的ecshop伪静态规则rew.conf</p><p style="font-family: Verdana,Arial,Tahoma; color: #333333; background-color: #ffffff; line-height: 25px;"><br/></p><p style="font-family: Verdana,Arial,Tahoma; color: #333333; background-color: #ffffff; line-height: 25px;"><br/></p><p style="font-family: Verdana,Arial,Tahoma; color: #333333; background-color: #ffffff; line-height: 25px;">rewrite "^/index\.html" /index.php last;</p><p style="font-family: Verdana,Arial,Tahoma; color: #333333; background-color: #ffffff; line-height: 25px;">rewrite "^/category$" /index.php last;</p><p style="font-family: Verdana,Arial,Tahoma; color: #333333; background-color: #ffffff; line-height: 25px;">rewrite "^/feed-c([0-9]+)\.xml$" /feed.php?cat=$1 last;</p><p style="font-family: Verdana,Arial,Tahoma; color: #333333; background-color: #ffffff; line-height: 25px;">rewrite "^/feed-b([0-9]+)\.xml$" /feed.php?brand=$1 last;</p><p style="font-family: Verdana,Arial,Tahoma; color: #333333; background-color: #ffffff; line-height: 25px;">rewrite "^/feed\.xml$" /feed.php last;</p><p style="font-family: Verdana,Arial,Tahoma; color: #333333; background-color: #ffffff; line-height: 25px;">rewrite "^/category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /category.php?id=$1&brand=$2&price_min=$3&price_max=$4&filter_attr=$5&page=$6&sort=$7&order=$8 last;</p><p style="font-family: Verdana,Arial,Tahoma; color: #333333; background-color: #ffffff; line-height: 25px;">rewrite "^/category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)(.*)\.html$" /category.php?id=$1&brand=$2&price_min=$3&price_max=$4&filter_attr=$5 last;</p><p style="font-family: Verdana,Arial,Tahoma; color: #333333; background-color: #ffffff; line-height: 25px;">rewrite "^/category-([0-9]+)-b([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /category.php?id=$1&brand=$2&page=$3&sort=$4&order=$5 last;</p><p style="font-family: Verdana,Arial,Tahoma; color: #333333; background-color: #ffffff; line-height: 25px;">rewrite "^/category-([0-9]+)-b([0-9]+)-([0-9]+)(.*)\.html$" /category.php?id=$1&brand=$2&page=$3 last;</p><p style="font-family: Verdana,Arial,Tahoma; color: #333333; background-color: #ffffff; line-height: 25px;">rewrite "^/category-([0-9]+)-b([0-9]+)(.*)\.html$" /category.php?id=$1&brand=$2 last;</p><p style="font-family: Verdana,Arial,Tahoma; color: #333333; background-color: #ffffff; line-height: 25px;">rewrite "^/category-([0-9]+)(.*)\.html$" /category.php?id=$1 last;</p><p style="font-family: Verdana,Arial,Tahoma; color: #333333; background-color: #ffffff; line-height: 25px;">rewrite "^/goods-([0-9]+)(.*)\.html" /goods.php?id=$1 last;</p><p style="font-family: Verdana,Arial,Tahoma; color: #333333; background-color: #ffffff; line-height: 25px;">rewrite "^/article_cat-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /article_cat.php?id=$1&page=$2&sort=$3&order=$4 last;</p><p style="font-family: Verdana,Arial,Tahoma; color: #333333; background-color: #ffffff; line-height: 25px;">rewrite "^/article_cat-([0-9]+)-([0-9]+)(.*)\.html$" /article_cat.php?id=$1&page=$2 last;</p><p style="font-family: Verdana,Arial,Tahoma; color: #333333; background-color: #ffffff; line-height: 25px;">rewrite "^/article_cat-([0-9]+)(.*)\.html$" /article_cat.php?id=$1 last;</p><p style="font-family: Verdana,Arial,Tahoma; color: #333333; background-color: #ffffff; line-height: 25px;">rewrite "^/article-([0-9]+)(.*)\.html$" /article.php?id=$1 last;</p><p style="font-family: Verdana,Arial,Tahoma; color: #333333; background-color: #ffffff; line-height: 25px;">rewrite "^/brand-([0-9]+)-c([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)\.html" /brand.php?id=$1&cat=$2&page=$3&sort=$4&order=$5 last;</p><p style="font-family: Verdana,Arial,Tahoma; color: #333333; background-color: #ffffff; line-height: 25px;">rewrite "^/brand-([0-9]+)-c([0-9]+)-([0-9]+)(.*)\.html" /brand.php?id=$1&cat=$2&page=$3 last;</p><p style="font-family: Verdana,Arial,Tahoma; color: #333333; background-color: #ffffff; line-height: 25px;">rewrite "^/brand-([0-9]+)-c([0-9]+)(.*)\.html" /brand.php?id=$1&cat=$2 last;</p><p style="font-family: Verdana,Arial,Tahoma; color: #333333; background-color: #ffffff; line-height: 25px;">rewrite "^/brand-([0-9]+)(.*)\.html" /brand.php?id=$1 last;</p><p style="font-family: Verdana,Arial,Tahoma; color: #333333; background-color: #ffffff; line-height: 25px;">rewrite "^/tag-(.*)\.html" /search.php?keywords=$1 last;</p><p style="font-family: Verdana,Arial,Tahoma; color: #333333; background-color: #ffffff; line-height: 25px;">rewrite "^/snatch-([0-9]+)\.html$" /snatch.php?id=$1 last;</p><p style="font-family: Verdana,Arial,Tahoma; color: #333333; background-color: #ffffff; line-height: 25px;">rewrite "^/group_buy-([0-9]+)\.html$" /group_buy.php?act=view&id=$1 last;</p><p style="font-family: Verdana,Arial,Tahoma; color: #333333; background-color: #ffffff; line-height: 25px;">rewrite "^/auction-([0-9]+)\.html$" /auction.php?act=view&id=$1 last;</p><p style="font-family: Verdana,Arial,Tahoma; color: #333333; background-color: #ffffff; line-height: 25px;">rewrite "^/exchange-id([0-9]+)(.*)\.html$" /exchange.php?id=$1&act=view last;</p><p style="font-family: Verdana,Arial,Tahoma; color: #333333; background-color: #ffffff; line-height: 25px;">rewrite "^/exchange-([0-9]+)-min([0-9]+)-max([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /exchange.php?cat_id=$1&integral_min=$2&integral_max=$3&page=$4&sort=$5&order=$6 last;</p><p style="font-family: Verdana,Arial,Tahoma; color: #333333; background-color: #ffffff; line-height: 25px;">rewrite ^/exchange-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /exchange.php?cat_id=$1&page=$2&sort=$3&order=$4 last;</p><p style="font-family: Verdana,Arial,Tahoma; color: #333333; background-color: #ffffff; line-height: 25px;">rewrite "^/exchange-([0-9]+)-([0-9]+)(.*)\.html$" /exchange.php?cat_id=$1&page=$2 last;</p><p style="font-family: Verdana,Arial,Tahoma; color: #333333; background-color: #ffffff; line-height: 25px;">rewrite "^/exchange-([0-9]+)(.*)\.html$" /exchange.php?cat_id=$1 last;</p><p><br/></p>
CopyRight 2002~2023 精通2100网 联系邮箱:qqtxt@163.com
版权所有:精通2100网
湘ICP备2023018646号-1
MYSQl共执行 4 个查询,用时 0.0018959045410156 秒,PHP脚本用时 0.003921 秒,占用内存 0.534 MB,Gzip 已启用