开发者

htaccess no hidden redirect

I have built a website with htaccess file and deployed it on two independent servers. Strangely, the httaccess worked differently.

httaccess:

RewriteEngine On

RewriteCompatibility2 On

RepeatLimit 32

RewriteBase
RewriteRule ^开发者_JAVA技巧(.*)$ www.google.com [NC,L,R=301]

1) *The server that acts as expected: replace the current url with www.googl.com *The other one: concatenate www.google.com to the current url.

2) hidden redirect patched the first problem. Now, I want to do a hidden redirect to google. I have omitted the [R] attribute and: *The "good" server does hidden redirect *The other one doesn't redirect at all (no hidden and shown redirect).

Does someone has a guess?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜