我有一个简单的文本框如何删除'?'在GET的URL中?
<form action="http://www.google.com" method="get">
Something <input type="text" name="something">
<input type="submit">
</form>
如果我输入内容的输入,这将是URL https://www.google.com/?something=something2
- 在这种情况下something2
是什么类型的用户。 但我想看到这样的网址https://www.google.com/something=something2
我试过.htaccess
但我失败了。
RewriteEngine On
RewriteRule .* /%{QUERY_STRING}? [L]
加入您与:) – Akdr 2013-04-29 13:58:04
添加了的.htaccess – Tyrick 2013-04-29 14:00:21
试图通过这个阅读试图代码: [http://stackoverflow.com/questions/11099502/htaccess-rewitecond-query-string-with-2-variable-and-rewrite-properly][1] [1]:HTTP: //stackoverflow.com/questions/11099502/htaccess-rewitecond-query-string-with-2-variable-and-rewrite-properly – ChaseTheSun 2013-04-29 14:05:07