.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
Post a Comment