标签 rewrite 下的文章

Bo-blog IIS Nginx Rewrite伪静态规则

适用于:bo-blog2.X以上版本  Windows IIS站点主机和Nginx主机IIS ISAPI_Rewrite:[ISAPI_Rewrite]# 3600 = 1 hourCacheClockRate 3600RepeatLimit 32# Protect httpd.ini and httpd.parse.errors files# from accessing through HTTP#Bo-Blog 2.1.1 Release ISAPI_Rewrite https://www.fity.cnRewriteRule ^(.*)/post/([0-9]+)/?([0-9]+)?/?([0-9]+)?/?$ $...

继续阅读 »

Apache Rewrite规则转Nginx Rewrite规则

不知道怎么把Apache Rewrite 规则转换成Nginx Rewrite配置的童鞋可以通过一个自动化的linux命令行工具apache2nginx进行Rewrite规则转换。使用apache2nginx能将apache的配置文件转换成相应的nginx的配置文件。源代码在github上:https://github.com/nhnc-nginx/apache2nginx使用方法:apache2nginx -f /etc/httpd/conf/httpd.conf  将生成 nginx.conf另外还可以在线转换:Apache转换到Nginx Rewrite:http://www.anilcetin.com/convert-apache-htaccess-to-nginx/Apach...

继续阅读 »

Nginx 常用的URL重定向方法

本文将以一些实例简单对Nginx的一些常用的URL重写方法做个简要的介绍。废话这里也不多说了哈,下面就转入正题。1. 在 Apache 中的写法RewriteCond  %{HTTP_HOST}  nginx.orgRewriteRule  (.*)          http://www.nginx.org$1在 Nginx 可以对应写成:server {    listen       80;  ...

继续阅读 »