首页 > 精品软件 > softshare > URL Rewrite伪静态规则转换工具,支持Apache、Lighttpd和Nginx
2013
10-20

URL Rewrite伪静态规则转换工具,支持Apache、Lighttpd和Nginx

不可思议,将URL Rewrite规则正向或反向转换,适用于Apache,Lighttpd,IIS,Nginx环境下伪静态。

URL RewriteRule conversion tool | URL伪静态规则转换工具
http://www.onexin.net/rewrite.php
http://winginx.com/en/htaccess
Nginx rewrite references e.g.

rewrite ^/(.*)([^/])$ http://$host/$1$2/ permanent;

URL Rewrite伪静态规则转换工具,支持Apache、Lighttpd和Nginx - 第1张  | 大博辞

Apache rewrite e.g.

RewriteRule ^store-([0-9]+)\.html$ store.php?id=$1 [L,NC]

IIS rewrite (WordPress)

[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32

RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

Apache rewrite (WordPress)

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

Nginx rewrite (Wordpress)

location / {
index index.html index.php;
if (-f $request_filename/index.html){
rewrite (.*) $1/index.html break;
}
if (-f $request_filename/index.php){
rewrite (.*) $1/index.php;
}
if (!-f $request_filename){
rewrite (.*) /index.php;
}
}
最后编辑:
作者:admin
捐 赠如果您觉得这篇文章有用处,请支持作者!鼓励作者写出更好更多的文章!

留下一个回复