您现在的位置是:帝国cms庄闲官网平台官方网站PC加拿大飞飞在线预测链接URL伪静态设置方法 >>正文
帝国cms庄闲官网平台官方网站PC加拿大飞飞在线预测链接URL伪静态设置方法
蔓草难除网37人已围观
简介后点击“提交”。设置网站首页伪静态,如下图,如下图3、帝国cms网站链接URL伪静态设置方法。动态页面的内容储存在数据库中。格式可以复制下面的配置信息内容页showinfo-[!--classid--...
3、
帝国cms网站链接URL伪静态设置方法。动态页面的内容储存在数据库中。格式可以复制下面的配置
信息内容页showinfo-[!--classid--]-[!--id--]-[!--page--].html
信息列表页listinfo-[!--classid--]-[!--page--].html
标题分类列表页infotype-[!--ttid--]-[!--page--].html
tags信息列表页tags-[!--tagname--]-[!--page--].html
评论列表页comment-[!--doaction--]-[!--classid--]-[!--id--]-[!--page--]-[!--myorder--]-[!--tempid--].html
3、静态页面生成的内容保存网站的根目录下,动态链接显示不但影响美观,也可以批量修改栏目属性)
庄闲官网平台官方c="http://www.bokequ.com/wp-content/uploads/2024/20240810153712.jpg" width="771" height="375" />
点击选择“栏目页模式”和“内容页模式”设置为动态页面,PC加拿大飞飞在线预测按住键盘shift同时点击即可全部选择左边的全部栏目。
最后数据更新,Nginx伪静态规则设置,修改完配置文件,可以单个修改栏目属性,链接效果显示http://www.你的域名.com/listinfo-2-0.html
注意:如果你网站之前是静态页面,帝国cms链接url模板可以设置为静态页面和动态页面,现改为动态页面且伪静态的。更新信息页庄闲官网平台官方PC加拿大飞飞在线预测地址即可。还不便于搜索引擎收录(如m.bokequ.com/e/action/ListInfo/?classid=2这样的链接)
1.栏目设置为动态页面(如下图,文章内容需要重新点击一下“修改”,页面设为动态url需要伪静态,伪静态参数设置,最后点击最下面的“提交”
2、需要重启nginx生效
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;rewrite ^/sitemap.xml /sitemap.php;rewrite ^/sitemap-([0-9]+).xml /sitemap.php?classid=$1;if (!-e $request_filename) {return 404;}
设置Apache伪静态规则
RewriteEngine OnErrorDocument 404 /404.htmlRewritebase /#信息列表RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^listinfo-(.+?)-(.+?)\.html$ /e/action/ListInfo/index\.php\?classid=$1&page=$2#信息内容页RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^showinfo-(.+?)-(.+?)-(.+?)\.html$ /e/action/ShowInfo\.php\?classid=$1&id=$2&page=$3#标题分类列表页RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^infotype-(.+?)-(.+?)\.html$ /e/action/InfoType/index\.php\?ttid=$1&page=$2#TAGS信息列表页RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^tags-(.+?)-(.+?)\.html$ /e/tags/index\.php\?tagname=$1&page=$2#评论列表页RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^comment-(.+?)-(.+?)-(.+?)-(.+?)-(.+?)-(.+?).html$ /e/pl/index\.php\?doaction=$1&classid=$2&id=$3&page=$4&myorder=$5&tempid=$6#搜索伪静态http://www.bokequ.com/600.html
4、否则可能内容链接出现404无法访问。
Tags:
相关文章
Crypto Markets in Retreat: BTC Losses $70K, WIF Plummets 11% Daily (Market Watch)
帝国cms庄闲官网平台官方网站PC加拿大飞飞在线预测链接URL伪静态设置方法Bitcoin’s recent rally came to a halt in the past 24 hours or so, as the asset was pushed down...
阅读更多
新浪微博主页侧边栏跟随页面滚动代码
帝国cms庄闲官网平台官方网站PC加拿大飞飞在线预测链接URL伪静态设置方法现在很多网站都有侧栏跟随的效果,如网站主体内容有两栏或三栏的时候,当内容栏页面很长,而侧栏(左/右)太短空白,很不美观。而使用侧边栏跟随固定浮动的效果(常见有相关推荐、文章推荐、热门文章、广告推广、左...
阅读更多
经典90版html坦克大战小游戏代码
帝国cms庄闲官网平台官方网站PC加拿大飞飞在线预测链接URL伪静态设置方法网页坦克大战小游戏源码,坦克页面小游戏,经典90版html坦克大战游戏代码。演示地址http://www.bokequ.com/show/youxi/1/电脑键盘操作说明:玩家1:wasd上左下右,s...
阅读更多