htaccess的问题 [英] .htaccess Question
本文介绍了htaccess的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在使用PHP登录脚本。进出上注册的变量
I have a login script using PHP. The variables for login in and out are
log.php?DO =并log.php?做出来=
log.php?do=in and log.php?do=out
我想改变这种登录/和注销/输出如果可能的话。
I would like to change this to log/in and log/out if possible.
我真的努力理解的.htaccess和重写此刻^ ^
Im really struggling to understand .htaccess and the rewriting at the moment ^^
推荐答案
试试这个:
RewriteEngine on
RewriteRule ^log/(in|out)$ log.php?do=$1 [L]
这篇关于htaccess的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文