精华内容
下载资源
问答
  • 2021-04-11 10:53:28

    apache 伪静态 url重写 iis 这是apache伪静态规则

    RewriteEngine OnRewriteCond %{REQUEST_URI} ^/admin/RewriteRule !\.(js|ico|gif|jpg|jpeg|bmp|png|swf|css|html|htm|php|rar|xml|ani|cur|mp3|mp4|flv|tpl|inc)$ /admin/index.php [L,NC]RewriteCond %{REQUEST_URI} !^/admin/RewriteRule !\.(js|ico|gif|jpg|jpeg|bmp|png|swf|css|html|htm|php|rar|xml|ani|cur|mp3|mp4|flv|tpl|inc)$ index.php [L,NC]

    求大神转为IIS的,谢谢了没分了

    回复讨论(解决方案)

    这个应该可以帮助你

    http://hi.baidu.com/lijunzaizi/item/ba8121280a37ea1609750862

    楼上说的,我知道,但是那个规则写法,我不会写,求规则写法!!!!

    再看看这个吧

    http://xueguang668.blog.163.com/blog/static/97722122201111151415593/

    还是不会,大神能帮我转转写吗???@@@

    iis有一个官方工具URL Rewrite

    可以直接导入.htaccess文件

    本文原创发布php中文网,转载请注明出处,感谢您的尊重!

    更多相关内容
  • 最新discuz伪静态规则+设置详解 多版本 伪静态效果:https://www.foxconnpx.cn/productinfo-3022.html或者https://www.ixcpx.cn/xidian/ 所谓动态地址就是带有?号如https://www.sjwxjc.cn/?type=productinfo&id=533...
  • 但很多网友还是不太了解Nginx服务器的伪静态规则的,而如果你安装的是一些常用的程序,如WordPress,PHPCMS,ECSHOP,SHOPEX,Discuz 7,那伪静态规则就有现成的了。为方便各位站长,收集了这几个常用程序的伪静态...
  • mayicms蚂蚁分类信息5.8、5.9伪静态规则
  • 写在前面的话. PW8 是个里程碑式的版本,有门户,有频道,等多元素多模式组成, stwind高度伪静态(超级伪静态)的处理方法仅仅适用于论坛部分.
  • Nginx下让WordPress支持固定链接的伪静态规则 要让nginx支持wordpress固定链接非常简单,需要自己进行添加点配置代码: 代码如下:location / {if (-f $request_filename/index.html){ rewrite (.*) $1/index....
  • 如何让IIS支持Apache .htaccess 伪静态规则 ? 很简单,一键安装覆盖即可,内含说明步骤与安装包。
  • 详细discuz 伪静态规则+设置详解 多版本 新手站长在用Discuz程序搭建网站后,会发现自己的网站地址是动态地址,所谓动态地址就是带有? 号这种,比如http://www.jztuan.net/shop/view264.html这种就属于动态地址,...
  • DZ论坛伪静态规则.rar

    2020-03-08 13:49:49
    DZ论坛伪静态规则,DZ论坛伪静态规则 从服务器里复制过来的,可以使用 原DZ论坛可以正常使用此规则
  • Typecho程序的伪静态规则不同于wp直接默认可用,需要我们手工加载到空间中才可以生效。下面老左整理了这款程序在不同的主机环境中的伪静态规则,希望对大家有所帮助
  • 织梦电脑站手机站伪静态+全套伪静态规则-自由目录版-附件资源
  • 织梦电脑站手机站伪静态+全套伪静态规则-固定目录版-附件资源
  • nginx里使用伪静态是直接在nginx.conf 中写规则的,并不需要像apache要开启写模块(mod_rewrite)才能进行伪静态。 nginx只需要打开nginx.conf配置文件,在server里面写需要的规则即可。 代码如下:server { listen ...
  • IIS伪静态规则

    2014-01-20 07:46:38
    如果使用rewrite伪静态模式,请注意把配置文件复制到网站根目录。 如果静态文件后缀配置的不是html,则请把rewrite配置文件中的.html替换为对应的后缀如.html
  • ng伪静态设置可以参考下面两行代码的写法 和 解释.寻找其中的规律.location/{rewrite^/([0-9]+)-([0-9]+)\.html$/index.php?cid=$1&id=$2last;rewrite^/([0-9]+)-([0-9]+)-([0-9]+)\.html$/index.php?cid...

    其他程序的.,网上也有,就不多说了

    那么自定义的如何写呢?

    ng伪静态设置可以参考下面两行代码的写法 和 解释.寻找其中的规律.location / {

    rewrite ^/([0-9]+)-([0-9]+)\.html$ /index.php?cid=$1&id=$2 last;

    rewrite ^/([0-9]+)-([0-9]+)-([0-9]+)\.html$ /index.php?cid=$1&id=$2&page=$3 last;

    }

    其中第一行.代表  把   /1-2.html 的网址  访问时 当做 /index.php?cid=1&id=2来执行

    其中第二行.代表  把   /1-2-3.html 的网址  访问时 当做 /index.php?cid=1&id=2&page=3来执行

    其中前面的正则表达式匹配的字符.自动转换成后面的 $1 $2 $3

    每个括号代表一个匹配项. 分别对应后面的 $1 $2 $3

    为了更好的看到效果

    我们可以在一个页面的最上方写入下面php代码:<?php

    var_dump($_GET);

    ?>

    然后设置伪静态后 访问你的 伪静态网址

    看一下获取到的 get参数 是否是你想要的.即可

    宝塔面板里面的伪静态直接写规则即可.无需再写 :location / { }

    可以直接这样写:rewrite ^/([0-9]+)-([0-9]+)\.html$ /index.php?cid=$1&id=$2 last;

    rewrite ^/([0-9]+)-([0-9]+)-([0-9]+)\.html$ /index.php?cid=$1&id=$2&page=$3 last;

    展开全文
  • 宝塔BT面板自带近30种网站程序的伪静态规则,新起点博客分享宝塔面板下各个源码程序的伪静态规则大全:宝塔伪静态规则程序列表宝塔伪静态规则程序源码包括:WordPress、帝国EmpireCMS、dedecms、discuz、drupal、...

    宝塔BT面板自带近30种网站程序的伪静态规则,新起点博客分享宝塔面板下各个源码程序的伪静态规则大全:

    宝塔伪静态规则程序列表

    宝塔伪静态规则程序源码包括:WordPress、帝国EmpireCMS、dedecms、discuz、drupal、ecshop、laravel5、phpcms、phpwind、shopex、thinkphp、typecho、weengine、zblog、dabr、dbshop、emlog、maccms、mvc、niushop、sablog、seacms等程序源码的伪静态规则,大家直接在后台选择即可。

    宝塔伪静态规则大全

    环境吧分享主流的程序伪静态规则,以Nginx Web服务器为例,想要Apache的用户可以自行转换。

    WordPress伪静态规则

    location / {

    index index.html index.php;

    if (-f $request_filename/index.html){

    rewrite (.*) $1/index.html break;

    }

    if (-f $request_filename/index.php){

    rewrite (.*) $1/index.php;

    }

    if (!-f $request_filename){

    rewrite (.*) /index.php;

    }

    }

    rewrite /wp-admin$ $scheme://$host$uri/ permanent;

    thinkphp伪静态规则

    location / {

    if (!-e $request_filename){

    rewrite ^(.*)$ /index.php?s=$1 last; break;

    }

    }

    dede织梦cms伪静态规则

    location / {

    rewrite "^/list-([0-9]+)\.html$" /plus/list.php?tid=$1 last;

    rewrite "^/list-([0-9]+)-([0-9]+)-([0-9]+)\.html$" /plus/list.php?tid=$1&totalresult=$2&PageNo=$3 last;

    rewrite "^/view-([0-9]+)-1\.html$" /plus/view.php?arcID=$1 last;

    rewrite "^/view-([0-9]+)-([0-9]+)\.html$" /plus/view.php?aid=$1&pageno=$2 last;

    rewrite "^/tags.html$" /tags.php last;

    rewrite "^/tag-([0-9]+)-([0-9]+)\.html$" /tags.php?/$1/$2/ last;

    break;

    }

    discuz伪静态规则

    location / {

    rewrite ^/archiver/((fid|tid)-[\w\-]+\.html)$ /archiver/index.php?$1 last;

    rewrite ^/forum-([0-9]+)-([0-9]+)\.html$ /forumdisplay.php?fid=$1&page=$2 last;

    rewrite ^/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ /viewthread.php?tid=$1&extra=page%3D$3&page=$2 last;

    rewrite ^/space-(username|uid)-(.+)\.html$ /space.php?$1=$2 last;

    rewrite ^/tag-(.+)\.html$ /tag.php?name=$1 last;

    }

    帝国EmpireCMS伪静态规则

    rewrite ^([^\.]*)/listinfo-(.+?)-(.+?)\.html$ $1/e/action/ListInfo/index.php?classid=$2&page=$3 last;

    rewrite ^([^\.]*)/showinfo-(.+?)-(.+?)-(.+?)\.html$ $1/e/action/ShowInfo.php?classid=$2&id=$3&page=$4 last;

    rewrite ^([^\.]*)/infotype-(.+?)-(.+?)\.html$ $1/e/action/InfoType/index.php?ttid=$2&page=$3 last;

    rewrite ^([^\.]*)/tags-(.+?)-(.+?)\.html$ $1/e/tags/index.php?tagname=$2&page=$3 last;

    rewrite ^([^\.]*)/comment-(.+?)-(.+?)-(.+?)-(.+?)-(.+?)-(.+?)\.html$ $1/e/pl/index\.php\?doaction=$2&classid=$3&id=$4&page=$5&myorder=$6&tempid=$7 last;

    if (!-e $request_filename) {

    return 404;

    }

    ECShop伪静态规则

    if (!-e $request_filename)

    {

    rewrite "^/index\.html" /index.php last;

    rewrite "^/category$" /index.php last;

    rewrite "^/feed-c([0-9]+)\.xml$" /feed.php?cat=$1 last;

    rewrite "^/feed-b([0-9]+)\.xml$" /feed.php?brand=$1 last;

    rewrite "^/feed\.xml$" /feed.php last;

    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;

    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;

    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;

    rewrite "^/category-([0-9]+)-b([0-9]+)-([0-9]+)(.*)\.html$" /category.php?id=$1&brand=$2&page=$3 last;

    rewrite "^/category-([0-9]+)-b([0-9]+)(.*)\.html$" /category.php?id=$1&brand=$2 last;

    rewrite "^/category-([0-9]+)(.*)\.html$" /category.php?id=$1 last;

    rewrite "^/goods-([0-9]+)(.*)\.html" /goods.php?id=$1 last;

    rewrite "^/article_cat-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /article_cat.php?id=$1&page=$2&sort=$3&order=$4 last;

    rewrite "^/article_cat-([0-9]+)-([0-9]+)(.*)\.html$" /article_cat.php?id=$1&page=$2 last;

    rewrite "^/article_cat-([0-9]+)(.*)\.html$" /article_cat.php?id=$1 last;

    rewrite "^/article-([0-9]+)(.*)\.html$" /article.php?id=$1 last;

    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;

    rewrite "^/brand-([0-9]+)-c([0-9]+)-([0-9]+)(.*)\.html" /brand.php?id=$1&cat=$2&page=$3 last;

    rewrite "^/brand-([0-9]+)-c([0-9]+)(.*)\.html" /brand.php?id=$1&cat=$2 last;

    rewrite "^/brand-([0-9]+)(.*)\.html" /brand.php?id=$1 last;

    rewrite "^/tag-(.*)\.html" /search.php?keywords=$1 last;

    rewrite "^/snatch-([0-9]+)\.html$" /snatch.php?id=$1 last;

    rewrite "^/group_buy-([0-9]+)\.html$" /group_buy.php?act=view&id=$1 last;

    rewrite "^/auction-([0-9]+)\.html$" /auction.php?act=view&id=$1 last;

    rewrite "^/exchange-id([0-9]+)(.*)\.html$" /exchange.php?id=$1&act=view last;

    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;

    rewrite ^/exchange-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /exchange.php?cat_id=$1&page=$2&sort=$3&order=$4 last;

    rewrite "^/exchange-([0-9]+)-([0-9]+)(.*)\.html$" /exchange.php?cat_id=$1&page=$2 last;

    rewrite "^/exchange-([0-9]+)(.*)\.html$" /exchange.php?cat_id=$1 last;

    }

    laravel5伪静态规则

    location / {

    try_files $uri $uri/ /index.php$is_args$query_string;

    }

    phpcms伪静态规则

    location / {

    ###以下为PHPCMS 伪静态化rewrite法则

    rewrite ^(.*)show-([0-9]+)-([0-9]+)\.html$ $1/show.php?itemid=$2&page=$3;

    rewrite ^(.*)list-([0-9]+)-([0-9]+)\.html$ $1/list.php?catid=$2&page=$3;

    rewrite ^(.*)show-([0-9]+)\.html$ $1/show.php?specialid=$2;

    ####以下为PHPWind 伪静态化rewrite法则

    rewrite ^(.*)-htm-(.*)$ $1.php?$2 last;

    rewrite ^(.*)/simple/([a-z0-9\_]+\.html)$ $1/simple/index.php?$2 last;

    }

    PHPwind伪静态规则

    location / {

    rewrite ^(.*)-htm-(.*)$ $1.php?$2 last;

    rewrite ^(.*)/simple/([a-z0-9\_]+\.html)$ $1/simple/index.php?$2 last;

    }

    shopex伪静态规则

    location / {

    if (!-e $request_filename) {

    rewrite ^/(.+\.(html|xml|json|htm|php|jsp|asp|shtml))$ /index.php?$1 last;

    }

    }

    typecho伪静态规则

    if (!-e $request_filename) {

    rewrite ^(.*)$ /index.php$1 last;

    }

    typecho2伪静态规则

    location /typecho/ {

    if (!-e $request_filename) {

    rewrite ^(.*)$ /typecho/index.php$1 last;

    }

    }

    weengine伪静态规则

    fastcgi_ignore_client_abort on;

    proxy_ignore_client_abort on;

    rewrite ^/(data|attachment)/.+\.php$ /404.html last;

    location ~ \.htaccess$ {

    deny all;

    }

    zblog伪静态规则

    if (-f $request_filename/index.html){

    rewrite (.*) $1/index.html break;

    }

    if (-f $request_filename/index.php){

    rewrite (.*) $1/index.php;

    }

    if (!-f $request_filename){

    rewrite (.*) /index.php;

    }

    根据自己的网站程序,复制对应的伪静态规则到宝塔面板后台粘贴即可。关于宝塔面板伪静态设置可以参考:宝塔面板网站伪静态设置方法

    展开全文
  • 宝塔BT面板自带近30种网站程序的伪静态规则,环境吧分享宝塔面板下各个源码程序的伪静态规则大全:宝塔伪静态规则程序列表宝塔伪静态规则程序源码包括:WordPress、帝国EmpireCMS、dedecms、discuz、drupal、ecshop...

    宝塔BT面板自带近30种网站程序的伪静态规则,环境吧分享宝塔面板下各个源码程序的伪静态规则大全:

    宝塔伪静态规则程序列表

    宝塔伪静态规则程序源码包括:WordPress、帝国EmpireCMS、dedecms、discuz、drupal、ecshop、laravel5、phpcms、phpwind、shopex、thinkphp、typecho、weengine、zblog、dabr、dbshop、emlog、maccms、mvc、niushop、sablog、seacms等程序源码的伪静态规则,大家直接在后台选择即可。

    宝塔伪静态规则大全

    环境吧分享主流的程序伪静态规则,以Nginx Web服务器为例,想要Apache的用户可以自行转换。

    WordPress伪静态规则

    location / {

    index index.html index.php;

    if (-f $request_filename/index.html){

    rewrite (.*) $1/index.html break;

    }

    if (-f $request_filename/index.php){

    rewrite (.*) $1/index.php;

    }

    if (!-f $request_filename){

    rewrite (.*) /index.php;

    }

    }

    rewrite /wp-admin$ $scheme://$host$uri/ permanent;

    1

    2

    3

    4

    5

    6

    7

    8

    9

    10

    11

    12

    13

    14

    location/{

    indexindex.htmlindex.php;

    if(-f$request_filename/index.html){

    rewrite(.*)$1/index.htmlbreak;

    }

    if(-f$request_filename/index.php){

    rewrite(.*)$1/index.php;

    }

    if(!-f$request_filename){

    rewrite(.*)/index.php;

    }

    }

    rewrite/wp-admin$$scheme://$host$uri/ permanent;

    thinkphp伪静态规则

    location / {

    if (!-e $request_filename){

    rewrite ^(.*)$ /index.php?s=$1 last; break;

    }

    }

    1

    2

    3

    4

    5

    location/{

    if(!-e$request_filename){

    rewrite^(.*)$/index.php?s=$1last;break;

    }

    }

    dedecms伪静态规则

    location / {

    rewrite "^/list-([0-9]+)\.html$" /plus/list.php?tid=$1 last;

    rewrite "^/list-([0-9]+)-([0-9]+)-([0-9]+)\.html$" /plus/list.php?tid=$1&totalresult=$2&PageNo=$3 last;

    rewrite "^/view-([0-9]+)-1\.html$" /plus/view.php?arcID=$1 last;

    rewrite "^/view-([0-9]+)-([0-9]+)\.html$" /plus/view.php?aid=$1&pageno=$2 last;

    rewrite "^/tags.html$" /tags.php last;

    rewrite "^/tag-([0-9]+)-([0-9]+)\.html$" /tags.php?/$1/$2/ last;

    break;

    }

    1

    2

    3

    4

    5

    6

    7

    8

    9

    location/{

    rewrite"^/list-([0-9]+)\.html$"/plus/list.php?tid=$1last;

    rewrite"^/list-([0-9]+)-([0-9]+)-([0-9]+)\.html$"/plus/list.php?tid=$1&totalresult=$2&PageNo=$3last;

    rewrite"^/view-([0-9]+)-1\.html$"/plus/view.php?arcID=$1last;

    rewrite"^/view-([0-9]+)-([0-9]+)\.html$"/plus/view.php?aid=$1&pageno=$2last;

    rewrite"^/tags.html$"/tags.phplast;

    rewrite"^/tag-([0-9]+)-([0-9]+)\.html$"/tags.php?/$1/$2/last;

    break;

    }

    discuz伪静态规则

    location / {

    rewrite ^/archiver/((fid|tid)-[\w\-]+\.html)$ /archiver/index.php?$1 last;

    rewrite ^/forum-([0-9]+)-([0-9]+)\.html$ /forumdisplay.php?fid=$1&page=$2 last;

    rewrite ^/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ /viewthread.php?tid=$1&extra=page%3D$3&page=$2 last;

    rewrite ^/space-(username|uid)-(.+)\.html$ /space.php?$1=$2 last;

    rewrite ^/tag-(.+)\.html$ /tag.php?name=$1 last;

    }

    1

    2

    3

    4

    5

    6

    7

    location/{

    rewrite^/archiver/((fid|tid)-[\w\-]+\.html)$/archiver/index.php?$1last;

    rewrite^/forum-([0-9]+)-([0-9]+)\.html$/forumdisplay.php?fid=$1&page=$2last;

    rewrite^/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$/viewthread.php?tid=$1&extra=page%3D$3&page=$2last;

    rewrite^/space-(username|uid)-(.+)\.html$/space.php?$1=$2last;

    rewrite^/tag-(.+)\.html$/tag.php?name=$1last;

    }

    帝国EmpireCMS伪静态规则

    rewrite ^([^\.]*)/listinfo-(.+?)-(.+?)\.html$ $1/e/action/ListInfo/index.php?classid=$2&page=$3 last;

    rewrite ^([^\.]*)/showinfo-(.+?)-(.+?)-(.+?)\.html$ $1/e/action/ShowInfo.php?classid=$2&id=$3&page=$4 last;

    rewrite ^([^\.]*)/infotype-(.+?)-(.+?)\.html$ $1/e/action/InfoType/index.php?ttid=$2&page=$3 last;

    rewrite ^([^\.]*)/tags-(.+?)-(.+?)\.html$ $1/e/tags/index.php?tagname=$2&page=$3 last;

    rewrite ^([^\.]*)/comment-(.+?)-(.+?)-(.+?)-(.+?)-(.+?)-(.+?)\.html$ $1/e/pl/index\.php\?doaction=$2&classid=$3&id=$4&page=$5&myorder=$6&tempid=$7 last;

    if (!-e $request_filename) {

    return 404;

    }

    1

    2

    3

    4

    5

    6

    7

    8

    rewrite^([^\.]*)/listinfo-(.+?)-(.+?)\.html$$1/e/action/ListInfo/index.php?classid=$2&page=$3last;

    rewrite^([^\.]*)/showinfo-(.+?)-(.+?)-(.+?)\.html$$1/e/action/ShowInfo.php?classid=$2&id=$3&page=$4last;

    rewrite^([^\.]*)/infotype-(.+?)-(.+?)\.html$$1/e/action/InfoType/index.php?ttid=$2&page=$3last;

    rewrite^([^\.]*)/tags-(.+?)-(.+?)\.html$$1/e/tags/index.php?tagname=$2&page=$3last;

    rewrite^([^\.]*)/comment-(.+?)-(.+?)-(.+?)-(.+?)-(.+?)-(.+?)\.html$$1/e/pl/index\.php\?doaction=$2&classid=$3&id=$4&page=$5&myorder=$6&tempid=$7last;

    if(!-e$request_filename){

    return404;

    }

    ECShop伪静态规则

    if (!-e $request_filename)

    {

    rewrite "^/index\.html" /index.php last;

    rewrite "^/category$" /index.php last;

    rewrite "^/feed-c([0-9]+)\.xml$" /feed.php?cat=$1 last;

    rewrite "^/feed-b([0-9]+)\.xml$" /feed.php?brand=$1 last;

    rewrite "^/feed\.xml$" /feed.php last;

    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;

    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;

    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;

    rewrite "^/category-([0-9]+)-b([0-9]+)-([0-9]+)(.*)\.html$" /category.php?id=$1&brand=$2&page=$3 last;

    rewrite "^/category-([0-9]+)-b([0-9]+)(.*)\.html$" /category.php?id=$1&brand=$2 last;

    rewrite "^/category-([0-9]+)(.*)\.html$" /category.php?id=$1 last;

    rewrite "^/goods-([0-9]+)(.*)\.html" /goods.php?id=$1 last;

    rewrite "^/article_cat-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /article_cat.php?id=$1&page=$2&sort=$3&order=$4 last;

    rewrite "^/article_cat-([0-9]+)-([0-9]+)(.*)\.html$" /article_cat.php?id=$1&page=$2 last;

    rewrite "^/article_cat-([0-9]+)(.*)\.html$" /article_cat.php?id=$1 last;

    rewrite "^/article-([0-9]+)(.*)\.html$" /article.php?id=$1 last;

    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;

    rewrite "^/brand-([0-9]+)-c([0-9]+)-([0-9]+)(.*)\.html" /brand.php?id=$1&cat=$2&page=$3 last;

    rewrite "^/brand-([0-9]+)-c([0-9]+)(.*)\.html" /brand.php?id=$1&cat=$2 last;

    rewrite "^/brand-([0-9]+)(.*)\.html" /brand.php?id=$1 last;

    rewrite "^/tag-(.*)\.html" /search.php?keywords=$1 last;

    rewrite "^/snatch-([0-9]+)\.html$" /snatch.php?id=$1 last;

    rewrite "^/group_buy-([0-9]+)\.html$" /group_buy.php?act=view&id=$1 last;

    rewrite "^/auction-([0-9]+)\.html$" /auction.php?act=view&id=$1 last;

    rewrite "^/exchange-id([0-9]+)(.*)\.html$" /exchange.php?id=$1&act=view last;

    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;

    rewrite ^/exchange-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /exchange.php?cat_id=$1&page=$2&sort=$3&order=$4 last;

    rewrite "^/exchange-([0-9]+)-([0-9]+)(.*)\.html$" /exchange.php?cat_id=$1&page=$2 last;

    rewrite "^/exchange-([0-9]+)(.*)\.html$" /exchange.php?cat_id=$1 last;

    }

    1

    2

    3

    4

    5

    6

    7

    8

    9

    10

    11

    12

    13

    14

    15

    16

    17

    18

    19

    20

    21

    22

    23

    24

    25

    26

    27

    28

    29

    30

    31

    32

    if(!-e$request_filename)

    {

    rewrite"^/index\.html"/index.phplast;

    rewrite"^/category$"/index.phplast;

    rewrite"^/feed-c([0-9]+)\.xml$"/feed.php?cat=$1last;

    rewrite"^/feed-b([0-9]+)\.xml$"/feed.php?brand=$1last;

    rewrite"^/feed\.xml$"/feed.phplast;

    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=$8last;

    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=$5last;

    rewrite"^/category-([0-9]+)-b([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$"/category.php?id=$1&brand=$2&page=$3&sort=$4&order=$5last;

    rewrite"^/category-([0-9]+)-b([0-9]+)-([0-9]+)(.*)\.html$"/category.php?id=$1&brand=$2&page=$3last;

    rewrite"^/category-([0-9]+)-b([0-9]+)(.*)\.html$"/category.php?id=$1&brand=$2last;

    rewrite"^/category-([0-9]+)(.*)\.html$"/category.php?id=$1last;

    rewrite"^/goods-([0-9]+)(.*)\.html"/goods.php?id=$1last;

    rewrite"^/article_cat-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$"/article_cat.php?id=$1&page=$2&sort=$3&order=$4last;

    rewrite"^/article_cat-([0-9]+)-([0-9]+)(.*)\.html$"/article_cat.php?id=$1&page=$2last;

    rewrite"^/article_cat-([0-9]+)(.*)\.html$"/article_cat.php?id=$1last;

    rewrite"^/article-([0-9]+)(.*)\.html$"/article.php?id=$1last;

    rewrite"^/brand-([0-9]+)-c([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)\.html"/brand.php?id=$1&cat=$2&page=$3&sort=$4&order=$5last;

    rewrite"^/brand-([0-9]+)-c([0-9]+)-([0-9]+)(.*)\.html"/brand.php?id=$1&cat=$2&page=$3last;

    rewrite"^/brand-([0-9]+)-c([0-9]+)(.*)\.html"/brand.php?id=$1&cat=$2last;

    rewrite"^/brand-([0-9]+)(.*)\.html"/brand.php?id=$1last;

    rewrite"^/tag-(.*)\.html"/search.php?keywords=$1last;

    rewrite"^/snatch-([0-9]+)\.html$"/snatch.php?id=$1last;

    rewrite"^/group_buy-([0-9]+)\.html$"/group_buy.php?act=view&id=$1last;

    rewrite"^/auction-([0-9]+)\.html$"/auction.php?act=view&id=$1last;

    rewrite"^/exchange-id([0-9]+)(.*)\.html$"/exchange.php?id=$1&act=viewlast;

    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=$6last;

    rewrite^/exchange-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" /exchange.php?cat_id=$1&page=$2&sort=$3&order=$4 last;

    rewrite "^/exchange-([0-9]+)-([0-9]+)(.*)\.html$" /exchange.php?cat_id=$1&page=$2 last;

    rewrite "^/exchange-([0-9]+)(.*)\.html$"/exchange.php?cat_id=$1last;

    }

    laravel5伪静态规则

    location / {

    try_files $uri $uri/ /index.php$is_args$query_string;

    }

    1

    2

    3

    location/{

    try_files$uri$uri//index.php$is_args$query_string;

    }

    phpcms伪静态规则

    location / {

    ###以下为PHPCMS 伪静态化rewrite法则

    rewrite ^(.*)show-([0-9]+)-([0-9]+)\.html$ $1/show.php?itemid=$2&page=$3;

    rewrite ^(.*)list-([0-9]+)-([0-9]+)\.html$ $1/list.php?catid=$2&page=$3;

    rewrite ^(.*)show-([0-9]+)\.html$ $1/show.php?specialid=$2;

    ####以下为PHPWind 伪静态化rewrite法则

    rewrite ^(.*)-htm-(.*)$ $1.php?$2 last;

    rewrite ^(.*)/simple/([a-z0-9\_]+\.html)$ $1/simple/index.php?$2 last;

    }

    1

    2

    3

    4

    5

    6

    7

    8

    9

    location/{

    ###以下为PHPCMS 伪静态化rewrite法则

    rewrite^(.*)show-([0-9]+)-([0-9]+)\.html$$1/show.php?itemid=$2&page=$3;

    rewrite^(.*)list-([0-9]+)-([0-9]+)\.html$$1/list.php?catid=$2&page=$3;

    rewrite^(.*)show-([0-9]+)\.html$$1/show.php?specialid=$2;

    ####以下为PHPWind 伪静态化rewrite法则

    rewrite^(.*)-htm-(.*)$$1.php?$2last;

    rewrite^(.*)/simple/([a-z0-9\_]+\.html)$$1/simple/index.php?$2last;

    }

    PHPwind伪静态规则

    location / {

    rewrite ^(.*)-htm-(.*)$ $1.php?$2 last;

    rewrite ^(.*)/simple/([a-z0-9\_]+\.html)$ $1/simple/index.php?$2 last;

    }

    1

    2

    3

    4

    location/{

    rewrite^(.*)-htm-(.*)$$1.php?$2last;

    rewrite^(.*)/simple/([a-z0-9\_]+\.html)$$1/simple/index.php?$2last;

    }

    shopex伪静态规则

    location / {

    if (!-e $request_filename) {

    rewrite ^/(.+\.(html|xml|json|htm|php|jsp|asp|shtml))$ /index.php?$1 last;

    }

    }

    1

    2

    3

    4

    5

    location/{

    if(!-e$request_filename){

    rewrite^/(.+\.(html|xml|json|htm|php|jsp|asp|shtml))$/index.php?$1last;

    }

    }

    typecho伪静态规则

    if (!-e $request_filename) {

    rewrite ^(.*)$ /index.php$1 last;

    }

    1

    2

    3

    if(!-e$request_filename){

    rewrite^(.*)$/index.php$1last;

    }

    typecho2伪静态规则

    location /typecho/ {

    if (!-e $request_filename) {

    rewrite ^(.*)$ /typecho/index.php$1 last;

    }

    }

    1

    2

    3

    4

    5

    location/typecho/{

    if(!-e$request_filename){

    rewrite^(.*)$/typecho/index.php$1last;

    }

    }

    weengine伪静态规则

    fastcgi_ignore_client_abort on;

    proxy_ignore_client_abort on;

    rewrite ^/(data|attachment)/.+\.php$ /404.html last;

    location ~ \.htaccess$ {

    deny all;

    }

    1

    2

    3

    4

    5

    6

    fastcgi_ignore_client_aborton;

    proxy_ignore_client_aborton;

    rewrite^/(data|attachment)/.+\.php$/404.htmllast;

    location~\.htaccess${

    denyall;

    }

    zblog伪静态规则

    if (-f $request_filename/index.html){

    rewrite (.*) $1/index.html break;

    }

    if (-f $request_filename/index.php){

    rewrite (.*) $1/index.php;

    }

    if (!-f $request_filename){

    rewrite (.*) /index.php;

    }

    1

    2

    3

    4

    5

    6

    7

    8

    9

    if(-f$request_filename/index.html){

    rewrite(.*)$1/index.htmlbreak;

    }

    if(-f$request_filename/index.php){

    rewrite(.*)$1/index.php;

    }

    if(!-f$request_filename){

    rewrite(.*)/index.php;

    }

    根据自己的网站程序,复制对应的伪静态规则到宝塔面板后台粘贴即可。关于宝塔面板伪静态设置可以参考:宝塔面板网站伪静态设置方法

    展开全文
  • 利用htaccess文件可以很好的进行站点伪静态,并且形成的目标地址与真正的静态页面几乎一模一样,如wangqu.html等,伪静态可以非常好的结合SEO来提高站点的排名,并且也能给人一种稳定的印象。 由于伪静态必须要完全...
  • 一、在linux主机下实现伪静态确认虚拟主机是否支持rewrite伪静态.htaccess文件。添加.htaccess 文件,把htaccess 文件放在网站根目录...具体伪静态规则看各自网站程序规则。发布帝国会员空间的伪静态,其实简单到弊...
  • 服务器设置伪静态规则 内容精选换一换如果要自定义裸金属服务器的DNS服务器信息,需要将裸金属服务器网络设置为静态IP。若将动态DHCP改为静态IP设置,IP和网关等网络信息必须和裸金属服务器下发时保持一致,否则可能...
  • 帝国CMS伪静态方法帝国CMS7.5默认动态页面伪静态设置,请到后台‘系统’-“系统设置”-“伪静态参数设置”里面,填写默认伪静态规则即可。设置如下图:帝国CMS伪静态规则说明附件包含结合项、.htaccess、Nginx.conf...
  • 一般php的开发者本地使用的都是使用apache服务器,使用伪静态的时候每次都需要转换成nginx rewrite规则,于是做了个在线将Apache htaccess Rewrite伪静态规则自动转换为Nginx Rewrite伪静态规则的工具使用这个工具...
  • 本文章来总结一下关于apache伪静态与iis伪静态区别介绍,主要讲到了一些规则的问题与配置区别,以后大家就可以直接在iis伪静态转换apache,反之也很简单哦,需要了解的碰可以参考下
  • 精仿互站网友价T5虚拟商城源码带微信支付宝支付自动发货源码带手机WAP版,动手能力强的可以拿去改改,内核很完整,带域名交易,源码交易,任务需求等功能
  • 什么是伪静态规则 Apache 伪静态配置 https://www.cnblogs.com/xcsn/p/4678280.html 1、域名配置 2、apache URL伪静态配置(thinkephp为例) 3、IIS配置伪静态(thinkPHP为例) 4、nginx下的配置 什么是...
  • 1、在网站根目录(web文件夹)下建一个文件,...2、用txt/记事本模式打开httpd.ini文件,将下面的内容复制到该文件内:[ISAPI_Rewrite]# 3600 = 1 hourCacheClockRate 3600RepeatLimit 32RewriteEngine On#伪静态规则3...
  • typecho伪静态规则,为什么要用typecho伪静态规则,因为typecho伪静态规则的路径更短,更有规律性方便搜索引擎抓取。今天给大家推荐typecho插件。一键建站+内容以及资源采集+伪原创+主动推送给搜索引擎收录等下会以...
  • IIS 配置伪静态规则

    2021-06-01 10:15:47
    IIS 配置伪静态规则 提示:IIS 环境下php 如何配置伪静态规则 提示:写完文章后,目录可以自动生成,如何生成可参考右边的帮助文档 文章目录IIS 配置伪静态规则前言一、Apache服务器.htaccess伪静态设置二、Nginx...

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 48,712
精华内容 19,484
关键字:

伪静态规则

友情链接: preprojects.rar