一江山水的随笔-Enjoy life!

当前位置:首页 - 技术 - 正文

InterPhoto图片网站nginx伪静态规则

2019-10-16 | 技术 | sun | 1298°c
A+ A-

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;
}


想找什么搜索会更快哦!
站点信息
  • 文章总数:107
  • 页面总数:1
  • 分类总数:4
  • 标签总数:73
  • 评论总数:61
  • 浏览总数:1739795
控制面板
您好,欢迎到访网站!
  查看权限
Top