首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >InterPhoto图片网站nginx伪静态规则

InterPhoto图片网站nginx伪静态规则

作者头像
风吹屁屁凉
发布2021-07-14 16:07:55
1.2K0
发布2021-07-14 16:07:55
举报

InterPhoto图片网站的伪静态规则,

适用于nginx环境

如果有人需要,可以用作参考!

伪静态规则代码如下:

location / {
	rewrite ^/index\.html$ /index.php last;
	rewrite ^/index-([0-9]+)\.html$ /index.php?c=$1 last;
	rewrite ^/InterPhoto\.html$ /InterPhoto.php last;
	rewrite ^/InterPhoto-([0-9]+)\.html$ /InterPhoto.php?id=$1 last;
	rewrite ^/mydesk\.html$ /mydesk.php last;
	rewrite ^/mydesk.edit\.html$ /mydesk.edit.php last;
	rewrite ^/mydesk.images\.html$ /mydesk.images.php last;
	rewrite ^/mydesk.noaccess\.html$ /mydesk.noaccess.php last;
	rewrite ^/mydesk.upload\.html$ /mydesk.upload.php last;
	rewrite ^/news\.html$ /news.php last;
	rewrite ^/news-([0-9]+)\.html$ /news.php?id=$1 last;
	rewrite ^/about\.html$ /about.php last;
	rewrite ^/contact\.html$ /contact.php last;
	rewrite ^/getbackpass\.html$ /getbackpass.php last;
	rewrite ^/login\.html$ /login.php last;
	rewrite ^/publish\.html$ /publish.php last;
	rewrite ^/register\.html$ /register.php last;
	rewrite ^/categories\.html$ /categories.php last;
}
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2019-10-16,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档