我想它,当我写了以下内容:
I want it so when I write the following:
http://boundsblazer.com/user/joe
在内部处理页面:
http://boundsblazer.com/user/profile?usr=joe
但保留旧的URL。 然而,当我写的:
But keeps the old URL. However, when I write:
http://boundsblazer.com/user/joe
网址变为:
http://boundsblazer.com/user/profile?usr=joe
我寻觅了无数的线程,没有人是有我的麻烦。问题是,当我写我的网址,网址变化,使它看起来难看。这是我的的.htaccess:
I have searched countless threads, and nobody is having the trouble I am. The problem is that when I write my URL, the URL changes and makes it look ugly. This is my .htaccess:
RewriteEngine on
RewriteRule ^user/([a-zA-Z0-9]+)$ http://boundsblazer.com/user/profile.php?usr=$1 [L,QSA]
有谁知道这可能是导致这个问题?
Does anyone know what could be causing the problem?
推荐答案
使用这样的:
RewriteEngine on
RewriteRule ^user/([a-zA-Z0-9]+)$ /user/profile.php?usr=$1 [L,QSA]
的问题是,你正在使用的不是相对URL的绝对URL,以及mod_rewrite并进行重写的重定向代替。
The issue is that you are using an absolute URL, instead of a relative URL, and mod_rewrite is performing a redirect instead of a rewrite.
相关推荐
最新文章