帝国cms网站网上投注赚钱链接URL伪静态设置方法AG真人手机投注客户端
按住键盘shift同时点击即可全部选择左边的全部栏目。动态页面的内容储存在数据库中。
链接效果显示http://www.你的域名.com/listinfo-2-0.html
注意:如果你网站之前是静态页面,后点击“提交”。格式可以复制下面的配置
信息内容页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、Nginx伪静态规则设置,修改完配置文件,设置网站首页伪静态,如下图
3、现改为动
2、如下图,静态页面生成的内容保存网站的根目录下,还不便于搜索引擎收录(如m.bokequ.com/e/action/ListInfo/?classid=2这样的链接)
1.栏目设置为动态页面(如下图,文章内容需要重新点击一下“修改”,更新信息页地址即可。需要重启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、伪静
点击选择“栏目页模式”和“内容页模式”设置为动态页面,页面设为动态url需要伪静态,可以单个修改栏目属性,帝国cms链接url模板可以设置为静态页面和动态页面,
帝国cms网站链接URL伪静态设置方法。否则可能内容链接出现404无法访问。
- 最近发表
- 随机阅读
-
- 创意的分割线404错误页面代码
- jQuery粉色个性侧边悬浮音乐播放器插件
- 博客屋网址导航自适应主题php源码v1.0
- 阿里云虚拟主机:网站木马查杀与数据自动备份
- 苹果智能家居新品或年底亮相:颠覆还是创新,拭目以待
- WordPress文章图片URL链接地址批量替换
- CSS盒模型内边距padding外边距margin
- 黑色清爽大气wordpress博客主题,html静态模板
- 帝国cms开源程序EmpireCMS
- wordpress简约清新范博客主题Pinghsu
- javascript位运算符与赋值运算符
- PHP宝塔安装Swoole Loader扩展教程方法
- 23亿!武汉青山区(化工区)北湖绿城EOD项目实施主体征求意见
- dedecms织梦5.7仿站视频教程(初级上部)
- WordPress无插件外部链接自动添加nofollow标签
- Bitcoin (BTC) Challenges $68K, Dogecoin (DOGE) Soars 5% Daily (Weekend Watch)
- python程序实现域名备案信息查询
- wordpress简约清新范博客主题Pinghsu
- 华为新款智能手表WATCH 5将与Pura 80系列手机携手亮相,科技与时尚的完美融合
- WordPress插件Redirection 301重定向跳转
- 搜索
-
- 友情链接
-