.htaccess - How to redirect everyone from my website apart from me? -



.htaccess - How to redirect everyone from my website apart from me? -

basically, want know in title of question:

rewritebase / rewriteengine on rewritebase / rewritecond %{remote_host} !^11.11.11.111 rewritecond %{request_uri} !/www.mywebsite.site10.net/stuff/randomfile.html\.html$ rewriterule .* http://www.google.com [r=302,l]

11.11.11.111 beingness ip address

options +followsymlinks rewriteengine on rewritecond %{remote_host} !^xxx\.xxx\.xxx\.xxx rewriterule \.html$ /anotherpage.html [r=302,l]

where xxx.xxx.xxx.xxx ip , anotherpage.html redirection page.

this 302 moved temporarily redirection http://en.wikipedia.org/wiki/http_302

.htaccess mod-rewrite

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -