读书人

htaccess规则要如何写呢?请在?号处填

发布时间: 2012-03-29 12:53:12 作者: rapoo

htaccess规则要怎么写呢?请在?号处填写内容。谢谢(急急急)
原来的
index.php?id=123 转换
123.html

htaccess如下:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^([0-9]+).html$ ?id=$1
</IfModule>

我现在想把原来的123改过加密的。用的是这个base64_encode

index.php?id=MTIz
MTIz.html

htaccess规则要怎么写呢?
<IfModule mod_rewrite.c>
RewriteEngine On
??????????????????????????????????
</IfModule>

[解决办法]
RewriteRule ^(.+).html$ ?id=$1

读书人网 >PHP

热点推荐