一江山水的随笔-Enjoy life!

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

Enjoy life!

InterPhoto图片网站nginx伪静态规则

2019-10-16 | 技术 | sun | 1350°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;
}


本文来源:一江山水的随笔

本文地址:https://www.298.name/post/67.html

主要内容:InterPhoto图片网站nginx伪静态规则

版权声明:如无特别注明,转载请注明本文地址!

发表评论

必填

选填

选填

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。


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