我需要为我的IP规则。
I need to create a rule for my IP.
我有一个规则,真实重定向所有TRAFIC到一个临时域,然后我需要创建一个新的规则制定字preSS为我工作正常(固定链接越来越问题,因为我改变了htaccess的重定向的人。
I have a rule that's redirecting all the trafic to a temporary domain, and then I need to create a new rule for making wordpress works fine for me (the permalinks are getting problems because I changed the htaccess to redirect people.
这是我的code:
RewriteEngine on
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REMOTE_HOST} !^95.126.000.MYIP
RewriteRule $ http://www.tempraldomain.com [R=302,L]
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
我需要混合第一块与第二正常工作。 任何帮助的灵魂?
I need to mix first block with the second to work properly. Any helping soul?
不知道我完全搞定你的问题,但我认为这可能是你想找的:
Not sure I get your question completely, but I think this might be what your looking for:
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REMOTE_ADDR} !^95.126.000.MYIP$
RewriteRule $ http://www.tempraldomain.com [R=302,L]
RewriteCond %{REMOTE_ADDR} ^95.126.000.MYIP$
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]