Home >Backend Development >PHP Tutorial > htaccess规则要如何写呢?请在?号处填写内容。多谢(急)

htaccess规则要如何写呢?请在?号处填写内容。多谢(急)

WBOY
WBOYOriginal
2016-06-13 13:41:591025browse

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

htaccess如下:

RewriteEngine On
RewriteRule ^([0-9]+).html$ ?id=$1


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

index.php?id=MTIz  
MTIz.html

htaccess规则要怎么写呢?

RewriteEngine On
??????????????????????????????????


------解决方案--------------------
RewriteRule ^(.+).html$ ?id=$1

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn