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