htaccess的重写的查询字符串 [英] htaccess rewrite for query string

查看:284
本文介绍了htaccess的重写的查询字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好吧,即时通讯pretty的在这个新的,我真的很AP preciate一定的帮助,谢谢!

Ok, im pretty new at this and I would really appreciate some help, thanks!

如何重写这个在.htaccess是否正确?

How can i rewrite this in .htaccess correctly?

所以,我在我的网址查询字符串:

So I have a query string in my url:

 /?url=contact

我想要做的是去除查询字符串

All i want to do is remove the query string

 /contact

帮助?为此,我谷歌和我学语法的权利,但remains..I不事实上知道该怎么做,只是还没有。感谢所有

Help? I scoured google and I'm learning the syntax right now, but the fact remains..I dont know how to do it just yet. Thanks to all

推荐答案

这是我的解决办法:

重写规则^(。*)$的index.php?URL = $ 1 [L,QSA]

这篇关于htaccess的重写的查询字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆