小菜鸟 发表于 2011-2-19 22:18:35

IsapiRewrite4.ini转.htaccess 求帮忙。。

IsapiRewrite4.ini如下:[*]
[*]RewriteRule ^/getemail/(\d+).image$ /getEmail.php?id=$1
[*]RewriteRule ^/(+).html$ /$1.html
[*]RewriteRule ^/admin.php(.*)?$ /admin.php$1
[*]RewriteRule ^/([^/|?]+)$ /?q=$1
[*]RewriteRule ^/(?:keywords|keywordslist|sitemap)/(?:.*/)?images/(.*)$ /images/$1
[*]RewriteRule ^/keywords/([^/]+)/$ /?k=1&q=$1&p=1
[*]RewriteRule ^/keywords/([^/]+)/(\d+).html$ /?k=1&q=$1&p=$2
[*]RewriteRule ^/sitemap/$ /sitemap.php?page=1
[*]RewriteRule ^/sitemap/sitemap(\d+)?.html$ /sitemap.php?page=$1
[*]RewriteRule ^/keywordslist/$ /keywords.php?page=1
[*]RewriteRule ^/keywordslist/(\d+)?.html$ /keywords.php?page=$1 复制代码转换成.htaccess之后的规则是?
mad.gif

Globalization 发表于 2011-2-19 22:31:52


mad.gif

mad.gif

mad.gif

小菜鸟 发表于 2011-2-19 23:14:21


mad.gif

mad.gif

mad.gif

micto 发表于 2011-2-19 23:22:24

[*]RewriteEngine On
[*]#RewriteBase /your_dir
[*]RewriteRule ^getemail/(\d+)\.image$ getEmail.php?id=$1
[*]RewriteRule ^(+)\.html$ $1.html
[*]RewriteRule ^admin\.php(.*)?$ admin.php$1
[*]RewriteRule ^([^/|?]+)$ ?q=$1
[*]RewriteRule ^(?:keywords|keywordslist|sitemap)/(?:.*/)?images/$ images/$1
[*]RewriteRule ^keywords/([^/]+)/$ ?k=1&q=$1&p=1
[*]RewriteRule ^keywords/([^/]+)/(\d+)\.html$ ?k=1&q=$1&p=$2
[*]RewriteRule ^sitemap/$ sitemap.php?page=1
[*]RewriteRule ^sitemap/sitemap(\d+)?\.html$ sitemap.php?page=$1
[*]RewriteRule ^keywordslist/$ keywords.php?page=1
[*]RewriteRule ^keywordslist/(\d+)?\.html$ keywords.php?page=$1复制代码

wdlth 发表于 2011-2-20 00:44:38

用helicon的工具去测试看,一条一条测试。
页: [1]
查看完整版本: IsapiRewrite4.ini转.htaccess 求帮忙。。