开发者

htaccess no hidden redirect

开发者 https://www.devze.com 2023-02-12 16:10 出处:网络
I have built a website with htaccess file and deployed it on two independent servers. Strangely, the httaccess worked differently.

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

精彩评论

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