问题原文
原帖链接 · Igor Skoldin · CC BY-SA 3.0
We have 301 redirect set from domain A to domain B. Domain A contains a working site.
Is there a way to disable 301 redirect in a browser so that when we come to domain A, we (the programmers/tester) stay on domain A and are not redirected?
已采纳解答
原帖链接 · Martijn · CC BY-SA 3.0
You can't stop the redirect in your browser. You could stop it, but you won't get domain A.
Simply add this line as condition, but with the ip (or ip's) you want, excluding yourself from the redirect:
RewriteCond %{REMOTE_ADDR} !^11\.222\.33\.444 [OR]
RewriteCond %{REMOTE_ADDR} !^11\.222\.33\.445
This way you can test the site, or do whatever you want to it, while the rest of the world sees the other version.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
