问题描述
我已经有了一个htaccess的重定向问题,无法计算出来,搜索了近一个小时后。请帮我。
i've got a problem with a htaccess-redirect and can't figured it out, after searching for nearly a hour. Please help me.
重写规则^耶$ http://www.domain.de/awesome%123123 [NC,QSA,L,R = 301]
所以,我想从重定向:domain.de/yeah到domain.de/awesome%123123~~V
So i would like to redirect from: domain.de/yeah to domain.de/awesome%123123
不过,该网址会在%-sign后进行切割。
But, the url is going to be cut after the %-sign.
非常感谢!我会花你的啤酒,如果你曾经访问罗斯托克。
Thanks a lot! I'm going to spend you a beer, if you ever visit Rostock.
推荐答案
您是否尝试过使用重写规则标记B
Have you tried using the RewriteRule flag B
http://httpd.apache.org/docs/2.2/重写/ flags.html#flag_b
重写规则^耶$ http://www.domain.de/awesome%123123 [ B,数控,QSA,L,R = 301]
RewriteRule ^yeah$ http://www.domain.de/awesome%123123 [B,NC,QSA,L,R=301]
这篇关于htaccess的重定向百分号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!