一款礼品礼物类的网站
搭建测试后,功能完整无误!
修正几个php语法错误
预览图:
视频预览
iis伪静态
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<!--start-php-->
<handlers>
<remove name="php_5.2" />
<remove name="php_5.3" />
<remove name="php_5.4" />
<remove name="php_5.5" />
<remove name="php_5.6" />
<remove name="php_7.0" />
<remove name="php_7.1" />
<add name="php_5.6" path="*.php" verb="*" modules="FastCgiModule" scriptProcessor="D:\BtSoft\WebSoft\php\5.6\php-cgi.exe" resourceType="Unspecified" requireAccess="Script" />
</handlers>
<!--end-php-->
<!--start-rewrite-->
<rewrite>
<rules>
<rule name="已导入的规则 1">
<match url="^item/(\d+)\.html$" ignoreCase="false" />
<action type="Rewrite" url="/e/zxfcode/item.php?id={R:1};" appendQueryString="false" />
</rule>
<rule name="已导入的规则 2">
<match url="^wenda/(\d+)\.html$" ignoreCase="false" />
<action type="Rewrite" url="/e/zxfcode/wenda.php?id={R:1};" appendQueryString="false" />
</rule>
<rule name="已导入的规则 3">
<match url="^list/(\d+)/?$" ignoreCase="false" />
<action type="Rewrite" url="/e/zxfcode/list.php?classid={R:1};" appendQueryString="false" />
</rule>
<rule name="已导入的规则 4">
<match url="^type/(\d+)$" ignoreCase="false" />
<action type="Rewrite" url="/e/zxfcode/type.php?id={R:1};" appendQueryString="false" />
</rule>
<rule name="已导入的规则 5">
<match url="^topic/(\d+)/?$" ignoreCase="false" />
<action type="Rewrite" url="/e/zxfcode/zt.php?id={R:1};" appendQueryString="false" />
</rule>
<rule name="已导入的规则 6">
<match url="^guwen/(\d+)-(\d+)-(\d+)-(\d+)/?$" ignoreCase="false" />
<action type="Rewrite" url="/e/zxfcode/guwen3.php?s={R:1}&id={R:2}&id2={R:3}&id3={R:4};" appendQueryString="false" />
</rule>
<rule name="已导入的规则 7">
<match url="^guwen/(\d+)-(\d+)/?$" ignoreCase="false" />
<action type="Rewrite" url="/e/zxfcode/guwen1.php?s={R:1}&id={R:2};" appendQueryString="false" />
</rule>
<rule name="已导入的规则 8">
<match url="^zhishi-(\d+)-(\d+).html$" ignoreCase="false" />
<action type="Rewrite" url="/e/zxfcode/zhishilist.php?bcid={R:1}&cid={R:2};" appendQueryString="false" />
</rule>
<rule name="已导入的规则 9">
<match url="^zhishi-(\d+).html$" ignoreCase="false" />
<action type="Rewrite" url="/e/zxfcode/zhishilist.php?cid={R:1};" appendQueryString="false" />
</rule>
</rules>
</rewrite>
<!--end-rewrite-->
</system.webServer>
</configuration>
nginx伪静态
rewrite ^/item/(\d+)\.html$ /e/zxfcode/item.php?id=$1 last;
rewrite ^/wenda/(\d+)\.html$ /e/zxfcode/wenda.php?id=$1 last;
rewrite ^/list/(\d+)/?$ /e/zxfcode/list.php?classid=$1 last;
rewrite ^/type/(\d+)$ /e/zxfcode/type.php?id=$1 last;
rewrite ^/tag/(\d+)/?$ /e/zxfcode/taglist.php?id=$1 last;
rewrite ^/topic/(\d+)/?$ /e/zxfcode/zt.php?id=$1 last;
rewrite ^/guwen/(\d+)-(\d+)-(\d+)-(\d+)/?$ /e/zxfcode/guwen3.php?s=$1&id=$2&id2=$3&id3=$4 last;
rewrite ^/guwen/(\d+)-(\d+)-(\d+)/?$ /e/zxfcode/guwen2.php?s=$1&id=$2&id2=$3 last;
rewrite ^/guwen/(\d+)-(\d+)/?$ /e/zxfcode/guwen1.php?s=$1&id=$2 last;
rewrite ^/zhishi-(\d+)-(\d+).html$ /e/zxfcode/zhishilist.php?bcid=$1&cid=$2 last;
rewrite ^/zhishi-(\d+).html$ /e/zxfcode/zhishilist.php?cid=$1 last;
阿帕奇伪静态
RewriteEngine On
ErrorDocument 404 /404.html
Rewritebase /
RewriteRule ^/item/(\d+)\.html$ /e/zxfcode/item.php?id=$1;
RewriteRule ^/wenda/(\d+)\.html$ /e/zxfcode/wenda.php?id=$1;
RewriteRule ^/list/(\d+)/?$ /e/zxfcode/list.php?classid=$1;
RewriteRule ^/type/(\d+)$ /e/zxfcode/type.php?id=$1;
RewriteRulee ^/tag/(\d+)/?$ /e/zxfcode/taglist.php?id=$1;
RewriteRule ^/topic/(\d+)/?$ /e/zxfcode/zt.php?id=$1;
RewriteRule ^/guwen/(\d+)-(\d+)-(\d+)-(\d+)/?$ /e/zxfcode/guwen3.php?s=$1&id=$2&id2=$3&id3=$4;
RewriteRulee ^/guwen/(\d+)-(\d+)-(\d+)/?$ /e/zxfcode/guwen2.php?s=$1&id=$2&id2=$3;
RewriteRule ^/guwen/(\d+)-(\d+)/?$ /e/zxfcode/guwen1.php?s=$1&id=$2;
RewriteRule ^/zhishi-(\d+)-(\d+).html$ /e/zxfcode/zhishilist.php?bcid=$1&cid=$2;
RewriteRule ^/zhishi-(\d+).html$ /e/zxfcode/zhishilist.php?cid=$1;
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
暂无评论内容