-
2021-04-09 11:15:50
一般php的开发者本地使用的都是使用apache服务器,使用伪静态的时候每次都需要转换成nginx rewrite规则,于是做了个在线将Apache htaccess Rewrite伪静态规则自动转换为Nginx Rewrite伪静态规则的工具
使用这个工具可以自动的把下面的apache伪静态规则自动转换nginx rewrite 规则
#apache htaccess rewrite
RewriteRule ^$ /index.php?c=bbs&m=index&a=index [L]
RewriteRule ^([a-zA-Z0-9]+)/$ /index.php?c=bbs&m=index&a=$1 [L]
RewriteRule ^index(_([0-9]*))?.html$ /index.php?c=bbs&m=index&a=index&page=$2 [L]
转换后
#nginx rewrite rules
rewrite ^/$ /index.php?c=bbs&m=index&a=index last;
rewrite ^/([a-zA-Z0-9]+)/$ /index.php?c=bbs&m=index&a=$1 last;
rewrite ^/index(_([0-9]*))?.html$ /index.php?c=bbs&m=index&a=index&page=$2 last;
更多相关内容 -
SEO工具箱:PHP自动生成PHPCMS伪静态规则.htaccess
2021-04-19 05:04:55([0-9]+)-([0-9]+).html index.php?m=content&c=index&a=lists&catid=$1&page=$2*/ SEO工具箱:PHP自动生成PHPCMS伪静态规则.htaccess 标签:col contents 技术 tac 描述 com rect zhang 友好 本条技术文章...define(‘PHPCMS_PATH‘, dirname(__FILE__).DIRECTORY_SEPARATOR);include PHPCMS_PATH.‘/phpcms/base.php‘;//pc_base::creat_app();
$db_config = pc_base::load_config(‘database‘); //读取配置文件
pc_base::load_sys_class(‘mysql‘, ‘‘, 0);
pc_base::load_sys_class(‘param‘, ‘‘, 0);
pc_base::load_model(‘content_model‘);$db=new mysql();$db->open($db_config[‘default‘]);$pre = $db_config[‘default‘][‘tablepre‘]; //读取表前缀
$db->connect();$catprefix = ‘list‘;$catrule .= "\n";$catrule .= "RewriteEngine on\n";$catdata = $db->select(‘catid,catdir,parentid‘,"{$pre}category","type=0");foreach($catdata as $item){$catdir = $item[‘catdir‘];$catid = $item[‘catid‘];$parentid = $item[‘parentid‘] ? $item[‘parentid‘] : "";if(trim($parentid)){$parentdir = $db->select(‘catdir‘,"{$pre}category","catid={$parentid}")[0][‘catdir‘];$catrule .= "RewriteRule ^{$parentdir}/{$catdir}/([0-9]+)-([0-9]+).html index.php?m=content&c=index&a=show&catid={$catid}&id=$2&page=$3\n";
}$catrule .= "RewriteRule ^{$catdir}/([0-9]+)-([0-9]+).html index.php?m=content&c=index&a=show&catid={$catid}&id=$2&page=$3\n";
}$catrule .= "RewriteRule ^{$catprefix}/([0-9]+)_([0-9]+).html index.php?m=content&c=index&a=lists&catid=$1&page=$2\n";$catrule .= "\n";file_put_contents(PHPCMS_PATH.‘/.htaccess‘,$catrule);/*RewriteEngine on
RewriteRule ^content-([0-9]+)-([0-9]+)-([0-9]+).html index.php?m=content&c=index&a=show&catid=$1&id=$2&page=$3
RewriteRule ^show-([0-9]+)-([0-9]+)-([0-9]+).html index.php?m=content&c=index&a=show&catid=$1&id=$2&page=$3
RewriteRule ^list-([0-9]+)-([0-9]+).html index.php?m=content&c=index&a=lists&catid=$1&page=$2*/
SEO工具箱:PHP自动生成PHPCMS伪静态规则.htaccess
标签:col contents 技术 tac 描述 com rect zhang 友好
本条技术文章来源于互联网,如果无意侵犯您的权益请点击此处反馈版权投诉
本文系统来源:http://www.cnblogs.com/wuzhi-seo/p/7522103.html
-
iis/apache/nginx/环境下织梦伪静态规则
2021-12-02 09:38:11一、iis环境下织梦伪静态规则 web.config 文件 <?xml version="1.0" encoding="UTF-8"?> 二、apache环境下织梦网站伪静态规则 .htaccess 文件 #dedecms电脑端目录结构apache伪静态 RewriteEngine On ...一、iis环境下织梦伪静态规则 web.config 文件
<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="首页"> <match url="^index.html$" ignoreCase="false" /> <action type="Rewrite" url="index.php" appendQueryString="false" /> </rule> <rule name="tag首页"> <match url="^tags.html$" ignoreCase="false" /> <action type="Rewrite" url="tags.php" appendQueryString="false" /> </rule> <rule name="tag列表"> <match url="^tags/([0-9]+).html$" ignoreCase="false" /> <action type="Rewrite" url="/tags.php?/{R:1}" appendQueryString="false" /> </rule> <rule name="tag列表最后有左斜杠"> <match url="^tags/([0-9]+).html$" ignoreCase="false" /> <action type="Rewrite" url="/tags.php?/{R:1}/" appendQueryString="false" /> </rule> <rule name="tag列表分页"> <match url="^tags/([0-9]+)_([0-9]+).html$" ignoreCase="false" /> <action type="Rewrite" url="/tags.php?/{R:1}/{R:2}" appendQueryString="false" /> </rule> <rule name="tag列表分页最后有左斜杠"> <match url="^tags/([0-9]+)_([0-9]+).html$" ignoreCase="false" /> <action type="Rewrite" url="/tags.php?/{R:1}/{R:2}/" appendQueryString="false" /> </rule> <rule name="列表"> <match url="^(.*)/$" ignoreCase="false" /> <action type="Rewrite" url="/plus/list.php?tid={R:1}" appendQueryString="false" /> </rule> <rule name="列表分页"> <match url="^(.*)/list_([0-9]+)_([0-9]+).html$" ignoreCase="false" /> <action type="Rewrite" url="/plus/list.php?tid={R:2}&PageNo={R:3}" appendQueryString="false" /> </rule> <rule name="文章页"> <match url="^(.*)/([0-9]+).html$" ignoreCase="false" /> <action type="Rewrite" url="/plus/view.php?aid={R:2}" appendQueryString="false" /> </rule> <rule name="文章分页"> <match url="^(.*)/([0-9]+)_([0-9]+).html$" ignoreCase="false" /> <action type="Rewrite" url="/plus/view.php?aid={R:2}&pageno={R:3}" appendQueryString="false" /> </rule> <rule name="搜索页分页"> <match url="^search/(.*)-([0-9]+).html$" ignoreCase="false" /> <action type="Rewrite" url="/plus/search.php?q={R:1}&PageNo={R:2}&pagesize=10&searchtype=title" appendQueryString="false" /> </rule> <rule name="搜索页"> <match url="^search/(.*).html$" ignoreCase="false" /> <action type="Rewrite" url="/plus/search.php?q={R:1}&pagesize=10&searchtype=title" appendQueryString="false" /> </rule> </rules> </rewrite> </system.webServer> </configuration>
二、apache环境下织梦网站伪静态规则 .htaccess 文件
#dedecms电脑端目录结构apache伪静态 RewriteEngine On RewriteBase / #首页 RewriteRule ^index\.html$ index\.php #TAG标签 RewriteRule ^tags\.html$ tags\.php RewriteRule ^tags/([0-9]+)\.html$ tags\.php\?\/$1 [L] RewriteRule ^tags/([0-9]+)\.html$ tags\.php\?\/$1\/ RewriteRule ^tags/([0-9]+)_([0-9]+)\.html$ tags\.php\?\/$1\/$2 RewriteRule ^tags/([0-9]+)_([0-9]+)\.html$ tags\.php\?\/$1\/$2\/ #列表栏目 RewriteRule ^(.*)/$ /plus/list.php?tid=$1 #列表栏目分页 RewriteRule ^(.*)/list_([0-9]+)_([0-9]+)\.html$ /plus/list.php?tid=$2&PageNo=$3 #文章页 RewriteRule ^(.*)/([0-9]+)\.html$ /plus/view.php?aid=$2 #文章页分页 RewriteRule ^(.*)/([0-9]+)_([0-9]+)\.html$ /plus/view.php?aid=$2&pageno=$3 #搜索页 RewriteRule ^search/(.*)-([0-9]+)\.html$ /plus/search.php?q=$1&PageNo=$2&pagesize=10&searchtype=title RewriteRule ^search/(.*)\.html$ /plus/search.php?q=$1&pagesize=10&searchtype=title
三、nginx环境下织梦伪静态规则 nginx.conf 文件
#把大括号{}里的代码放到你的nginx配置文件location /{}里面去location / { #dedecms电脑端目录结构nginx伪静态 #首页 rewrite ^/index\.html$ /index.php; #TAG标签 rewrite ^/tags\.html$ /tags.php; rewrite ^/tags/([0-9]+)\.html$ /tags.php?\/$1; rewrite ^/tags/([0-9]+)\.html$ /tags.php?\/$1\/; rewrite ^/tags/([0-9]+)_([0-9]+)\.html$ /tags.php?\/$1\/$2; rewrite ^/tags/([0-9]+)_([0-9]+)\.html$ /tags.php?\/$1\/$2\/; #列表栏目 rewrite ^/(.*)/$ /plus/list.php?tid=$1; #列表栏目分页 rewrite ^/(.*)/list_([0-9]+)_([0-9]+)\.html$ /plus/list.php?tid=$1&PageNo=$2; #文章页 rewrite ^/(.*)/([0-9]+)\.html$ /plus/view.php?aid=$1; #文章页分页 rewrite ^/(.*)/([0-9]+)_([0-9]+)\.html$ /plus/view.php?aid=$1&pageno=$2; #搜索页 rewrite ^/search/(.*)-([0-9]+)\.html$ /plus/search.php?q=$1&PageNo=$2&pagesize=10&searchtype=title; rewrite ^/search/(.*)\.html$ /plus/search.php?q=$1&pagesize=10&searchtype=title; }
-
网站重写url伪静态工具
2017-09-23 14:33:42ISAPI_Rewrite,ISAPI_Rewrite用来实现伪静态,将动态网页通过重写URL的方法实现去掉动态网页的参数!它的行为是像Apache的mod_Rewrite ,但专为微软的Internet信息服务( IIS )。 IIS配置相当简单,配置好之后就有... -
常见PHP程序的Nginx 伪静态规则
2021-04-16 12:06:32下面是常见的php程序在...1、WordPress伪静态if (-f $request_filename/index.html){rewrite (.*) $1/index.html break;}if (-f $request_filename/index.php){rewrite (.*) $1/index.php;}if (!-f $request_file...下面是常见的php程序在nginx 下的Rewrite 规则。
1、WordPress伪静态
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;
}
2、PHPCMS伪静态
rewrite ^/caipu-([0-9]+)-([0-9]+)-([0-9]+).html /index.php?m=content&c=index&a=show&catid=$1&id=$2&page=$3 last;
rewrite ^/content-([0-9]+)-([0-9]+)-([0-9]+).html /index.php?m=content&c=index&a=show&catid=$1&id=$2&page=$3 last;
rewrite ^/list-([0-9]+)-([0-9]+).html /index.php?m=content&c=index&a=lists&catid=$1&page=$2 last;
rewrite ^/tag-([^\.]*)-([0-9]+)-([0-9]+).html /index.php?m=content&c=tag&catid=$2&tag=$1&page=$3 last;
rewrite ^/comment-([0-9]+)-([0-9]+)-([0-9]+).html /index.php?m=comment&c=index&a=init&commentid=content_$1-$2-$3 last;
rewrite ^/([^\.]*).html /index.php?m=member&c=index&a=$1 last;
3、DEDECMS伪静态
rewrite "^/index.html$" /index.php last;
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;
4、Discuz7伪静态
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;
5、DiscuzX伪静态
rewrite ^([^\.]*)/topic-(.+)\.html$ $1/portal.php?mod=topic&topic=$2 last;
rewrite ^([^\.]*)/article-([0-9]+)-([0-9]+)\.html$ $1/portal.php?mod=view&aid=$2&page=$3 last;
rewrite ^([^\.]*)/forum-(\w+)-([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&page=$3 last;
rewrite ^([^\.]*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=viewthread&tid=$2&extra=page%3D$4&page=$3 last;
rewrite ^([^\.]*)/group-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=group&fid=$2&page=$3 last;
rewrite ^([^\.]*)/space-(username|uid)-(.+)\.html$ $1/home.php?mod=space&$2=$3 last;
rewrite ^([^\.]*)/([a-z]+)-(.+)\.html$ $1/$2.php?rewrite=$3 last;
if (!-e $request_filename) {
return 404;
}
6、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;
}
7、PHPWind伪静态
rewrite ^(.*)-htm-(.*)$ $1.php?$2 last;
rewrite ^(.*)/simple/([a-z0-9\_]+\.html)$ $1/simple/index.php?$2 last;
8、SaBlog2.0伪静态
# 只带月份的归档
rewrite "^/date/([0-9]{6})/?([0-9]+)?/?$" /index.php?action=article&setdate=$1&page=$2 last;
# 无分类翻页
rewrite ^/page/([0-9]+)?/?$ /index.php?action=article&page=$1 last;
# 分类
rewrite ^/category/([0-9]+)/?([0-9]+)?/?$ /index.php?action=article&cid=$1&page=$2 last;
rewrite ^/category/([^/]+)/?([0-9]+)?/?$ /index.php?action=article&curl=$1&page=$2 last;
# 归档、高级搜索
rewrite ^/(archives|search|article|links)/?$ /index.php?action=$1 last;
# 全部评论、标签列表、引用列表 带分页
rewrite ^/(comments|tagslist|trackbacks|article)/?([0-9]+)?/?$ /index.php?action=$1&page=$2 last;
# tags
rewrite ^/tag/([^/]+)/?([0-9]+)?/?$ /index.php?action=article&item=$1&page=$2 last;
# 文章
rewrite ^/archives/([0-9]+)/?([0-9]+)?/?$ /index.php?action=show&id=$1&page=$2 last;
# RSS rewrite ^/rss/([0-9]+)?/?$ /rss.php?cid=$1 last;
rewrite ^/rss/([^/]+)/?$ /rss.php?url=$1 last;
# 用户 rewrite ^/uid/([0-9]+)/?([0-9]+)?/?$ /index.php?action=article&uid=$1&page=$2 last;
rewrite ^/user/([^/]+)/?([0-9]+)?/?$ /index.php?action=article&user=$1&page=$2 last;
# 地图文件
rewrite sitemap.xml sitemap.php last;
# 自定义链接
rewrite ^(.*)/([0-9a-zA-Z\-\_]+)/?([0-9]+)?/?$ $1/index.php?action=show&alias=$2&page=$3 last;
9、SHOPEX伪静态
if (!-e $request_filename) {
rewrite ^/(.+\.(html|xml|json|htm|php|jsp|asp|shtml))$ /index.php?$1 last;
}
10、Typecho伪静态
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;
}
-
IIS 配置伪静态规则
2021-06-01 10:15:47IIS 配置伪静态规则 提示:IIS 环境下php 如何配置伪静态规则 提示:写完文章后,目录可以自动生成,如何生成可参考右边的帮助文档 文章目录IIS 配置伪静态规则前言一、Apache服务器.htaccess伪静态设置二、Nginx... -
Nginx下PHPCMS伪静态规则
2021-04-16 12:06:33环境:LNMP一键安装包1.3版本伪静态规则文件需要放在/usr/local/nginx/conf/ 下面。创建一个phpcms.conf文件,里面写如下伪静态规则:location / {if (!-e $request_filename){rewrite ^/caipu-([0-9]+)-([0-9]+)-(... -
最详细的织梦Dedecms伪静态方法(含伪静态规则)
2021-06-09 14:39:17关于织梦DedeCms全站伪静态的问题。支持最新的DedeCms V5.7,包括频道页、列表页、文章页、搜索页、TAG标签和问答模块的伪静态,可以说,这是目前最完整、最详细的DedeCms伪静态教程了。言归正传,在开始这篇DedeCms... -
宝塔面板默认WordPress伪静态规则
2021-04-28 05:33:01在宝塔面板面板 5.9 至 6.8 的版本中,默认内置的 wordpress 规则,已经被调整过了,如果你的面板规则从来没有变过,可以去重新更新下默认伪静态规则了。为什么需要去调整,因为这些版本中默认的伪静态规则有误,在... -
phpcms在nginx的rewrite伪静态标准写法
2020-09-29 03:53:01phpcms在nginx的rewrite伪静态写法,网上是乱七八糟的不知道有多少种。有的是直接从apache的规则修改来的,但这种修改而来的却不是最标准的 -
单网址/单页面301重定向apache伪静态规则【记录】
2022-06-16 09:13:42因为某些原因导致,网站中的某个网址链接需要被屏蔽掉,但是这个网址是规则生成,无法控制的,所以想了很久,可以通过301重定向的...将下面的代码,进行修改被重定向网址,重定向网址后,放入网站伪静态规则中即可。... -
帝国CMS7.5默认伪静态nginx版,升级tagid伪静态规则
2022-07-15 23:13:26最后将修改好的伪静态规则保存到服务器。 -
Thinkphp 6.0路由定义 伪静态规则
2020-09-03 10:20:41Thinkphp 6.0路由定义 伪静态规则 要使用Route类注册路由必须首先在路由定义文件开头添加引用(后面不再重复说明) use think\facade\Route; 注册路由 最基础的路由定义方法是: Route::rule('路由表达式', ... -
iss下伪静态生成规则方法
2014-08-08 10:24:29生成一个名叫web.config文件,放在网站的根目录下,内容设置如下: .......................... -
apache服务器伪静态规则教程_htaccess
2018-05-27 18:08:15伪静态 伪静态是相对真实静态来讲的,通常我们为了增强搜索引擎的友好面,都将文章内 容生成静态页面,但是有的朋友为了实时的显示一些信息。或者还想运用动态脚本 解决一些问题。不能用静态的方式来展示网站内容... -
Dedecms织梦搜索伪静态方法(含伪静态规则)
2021-04-13 12:41:08Apache服务器伪静态相对简单,直接在.htaccess文件中加入相应伪静态规则即可;而IIS服务器伪静态的实现,则需要加载Rewrite组件,然后配置httpd.ini文件。2)开启DedeCms伪静态a.后台-系统参数-核心设置-是否... -
宝塔面板WeCenter伪静态规则
2021-04-29 14:52:16使用宝塔面板安装WeCenter如何设置伪静态规则,码笔记来说说宝塔BT面板WeCenter规则及设置方法: 宝塔面板WeCenter伪静态规则 宝塔面板设置WeCenter伪静态很简单,WeCenter宝塔面板下的伪静态规则如下: ... -
laravel Apache 伪静态
2022-04-22 18:04:44<IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews -Indexes </IfModule> RewriteEngine On # Handle Authorization Header RewriteCond %{... -
z-blog二级目录伪静态规则设置方法
2021-05-06 01:46:59使用Z-Blog搭建好一个网站后,怎么设置服务器的伪静态规则呢?其实Zblog官方在伪静态设置页面就给了Apache + .htaccess、IIS 7及以上 + URL Rewrite Module、IIS 6 + ISAPI Rewrite 2.X、Nginx、Lighttpd这些常见... -
ISAPI-REWRITE伪静态规则写法以及说明
2020-09-30 19:02:14ISAPI-REWRITE伪静态规则写法以及说明,很多朋友对rewrite的规则不太熟悉,这里介绍下,方便需要的朋友 -
史上最全织梦全站伪静态规则!
2021-06-09 14:39:49最近很多朋友来问我的站点的伪静态是怎么写的,今天就拿出来和大家分享一下子。呵呵dedecms(织梦)完美实现伪静态的方法dedecms(织梦)完美实现伪静态的方法测试版本:Dedecms V5.6版本测试平台:Windows 7测试环境:... -
PHP 404页面/如何设置404页面/URL静态化/URL伪静态化
2021-04-19 03:21:08ExpiresByType image/jpg “access plus 1 month” # js/css 有效期为1星期 ExpiresByType text/javascript “access plus 1 week” ExpiresByType text/css “access plus 1 week” WordPress建站程序伪静态代码 # ... -
PHP 伪静态规则、写法
2018-05-25 15:13:41伪静态定义(百度百科) 伪静态是相对真实静态来讲的,通常我们为了增强搜索引擎的友好面,都将文章内容生成静态页面,但是有的朋友为了实时的显示一些信息。或者还想运用动态脚本解决一些问题。不能用静态的方式来... -
PHP中的.htaccess伪静态文件
2020-09-10 03:39:32htaccess是apache的伪静态文件了不过普通人不熟悉linux不熟悉apache,可能都用惯了iis,可是又不懂伪静态规则,现在项目就只提供了这么一个.htaccess文件,真叫人苦恼。方案来了彻底解决你的苦恼让伪静态妥妥的... -
生成伪原创工具.rar
2020-12-14 21:26:07自动编辑创建文案的 软件,也可以自动打乱成品文案或段落,生成一条新段落。专门用来生成原创及伪原创文章。使用伪原创工具可以制作出互联网上具有唯一性的伪原创文章。 -
WordPress伪静态规则设置教程
2021-03-24 23:44:45WordPress和其它网站系统不一样,其它网站系统基本都带有生成静态页面功能, 但Wp只能使用伪静态。 现在的主机基本都会支持伪静态功能,只需在空间后台伪静态功能,选择网站系统,空间就会支持该系统的伪静态。 ... -
CMS 自定义伪静态,RewriteURL规则---[静态/伪静态]自定义URL地址
2021-01-21 10:00:49昨天有要求说是网站上面添加伪静态,因为用的是cms,所以像TP,Laravel,这些框架的伪静态是不可以适用到CMS上面的。所以就在晚上找了一圈,这个CMS的伪静态可真难写呀,真的要自己一个一个写出来的,可能还有更容易... -
XiaoCms 伪静态规则配置说明
2021-04-23 20:08:27XiaoCms 支持 生成静态 动态 伪静态 下面说下伪静态规则。伪静态指向地址说明栏目列表指向地址:index.php?catdir=栏目目录或者 index.php?catid=栏目ID栏目分页指向地址:index.php?catdir=栏目目录&page=分页 ... -
蚂蚁分类信息系统Nginx伪静态规则支持二级域名设置方法
2022-02-11 20:55:55蚂蚁分类信息系统Nginx伪静态规则支持二级域名设置方法 nginx环境中蚂蚁分类信息系统支持二级域名访问实现方法 1.后台生成所有城市目录 2.nginx伪静态增加配置 if ( $host ~* (\b(?!www|!m\b)\w+)\.\w+\.\w+ ) { ... -
苹果cms伪静态规则与配置教程
2021-06-19 02:53:36苹果cms由于采用tp5的路由规则生成url, 所以不懂伪静态规则的不要乱改规则,以免造成网站无法正常访问导致异常出现404页面。在这里呢我们就给大家介绍在IIS、Nginx、Apache等常用不同环境下的伪静态设置教程。这里...