我最近学习了使用.htaccess
, 的 URL 重写。作为初学者,这对我来说已成为一项艰巨的任务:(
我可以重写一个特定的 url,比如:
RewriteEngine On
RewriteRule ^nothing/?$ abc.php [NC,L]
但我对此并不满意,需要你的帮助。
我的 .php 文件保存在一个名为files
. 所以我有这样的网址:
www.mysite.com/files/login.php?lf=student
www.mysite.com/files/login.php?lf=admin
www.mysite.com/files/s_home.php
www.mysite.com/files/recharge.php
我想要的很简单:
mysite.com/login
mysite.com/login
mysite.com/s_home
mysite.com/recharge
有人可以帮忙吗?