301 redirect though HTACCESS file -Question

1 replies
  • SEO
  • |
I am using following code in my HTACCESS to redirect a certain range of ip visitors starting from 68.162.*.* to another website. I don't want that range of particular ips to access my main site so i am redirecting to another offer by redirecting .

# permanently redirect specific IP request for entire site
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{REMOTE_HOST} 68.162
RewriteRule .* destinationurl [dot] com/ [R=301,L]
code is working fine and redirecting all the visitor coming from these range of ips. But i have a doubt about such redirects . Are these search engine crawler friendly and which url will be cache by crawler , my actual site where my HTACCESS file is placed or the destinationurl , where i am redirecting ?

since i am redirecting a range of ips so i hope it shouldn't create a problem while crawling my actual site . I didn't put the code yet because i want to make sure first .

thanks any kind of help is appreciated
#301 #file #htaccess #question #redirect
  • Profile picture of the author garyseo786
    if someone has any idea then please share. i really need some opinions
    Signature

    {{ DiscussionBoard.errors[3935245].message }}

Trending Topics