我需要专家的帮助来解决我的问题。我刚刚开始学习rewriterule,rbase和rcond。我想重写我的网站链接,如codeigniter MVC。例如:
http://localhost/app/index.php?page=profile&user=john -> http://localhost/app/index/page/profile/user/john
怎么做?我尝试多次更改,但我没有这样的网址,但发生了错误。
答案 0 :(得分:0)
RewriteRule ^index/page/(.*)/user/(.*)$ /index.php?page=$1&user=$2 [L]