Results 1 to 2 of 2
Thread: [Help] Htaccess Code
-
05-07-2014, 10:50 PM #1Junior Guru Wannabe
- Join Date
- Jun 2011
- Posts
- 66
[Help] Htaccess Code
Hello
guys can anyone help me with the code
i want to redirect the google bot to other domain and all pages i.e 301 redirect
currently therir is a code
Code:#Options +FollowSymLinks RewriteEngine on RewriteRule ^(.*)$ http://www.ENTER-YOUR-NEW-DOMAIN-HERE.COM/$1 [R=301,L]
Can anyone helps me please.
Thanks
-
05-08-2014, 08:37 AM #2Junior Guru Wannabe
- Join Date
- Oct 2009
- Location
- Netherlands, the
- Posts
- 46
Something like this?
#Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} exmaple.com$ [NC]
RewriteCond %{HTTP_USER_AGENT} Googlebot
RewriteRule ^(.*)$ http://www.exmaple.com/$1 [L,R=301]█ WebMeso.com | High Quality | Internet Service Provider
█ Dedicated servers, Webhosting, Colocation, VPS, domain name registration
█ High-end | Virtual Private Servers | KVM virtualisation technique
█ Amsterdam, the Netherlands (AMS) (NL) (EU)
Similar Threads
-
can someone convert apache htaccess code to nginx code
By rajin90 in forum Hosting Security and TechnologyReplies: 3Last Post: 03-11-2013, 03:18 AM -
.htaccess code in php4
By jibinthomas007 in forum Web HostingReplies: 3Last Post: 03-23-2012, 01:23 PM -
need a little help with htaccess redirect code
By ransome in forum Hosting Security and TechnologyReplies: 2Last Post: 08-21-2011, 08:03 AM -
What do you think this htaccess code does?
By lexington in forum Programming DiscussionReplies: 3Last Post: 04-19-2008, 12:47 PM -
Need help with .htaccess hotlink code!
By sir_han in forum Programming DiscussionReplies: 0Last Post: 06-28-2007, 06:05 AM