How to redirect specific user agent on specific url to speci
Posted: 20. May 2015 20:32
I have question:
How to create redirect specific user agent on specific url to specific url in htaccess?
e.g
I want to redirect 301 with conditional:
to
I try this in .htaccess
but not work
Thanks so much
How to create redirect specific user agent on specific url to specific url in htaccess?
e.g
I want to redirect 301 with conditional:
- Code: Select all
useragent: Firefox
in my url1: http://sampledomain.tld/old-urls1/
in my url2: http://sampledomain.tld/old-urls12/
to
- Code: Select all
new url1: in my url1: http://sampledomain.tld/new-urls1/
new url2: in my url1: http://sampledomain.tld/old-urls2/
I try this in .htaccess
- Code: Select all
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} googlebot [NC]
RewriteRule ^/?this-is-url/?$ http://newurl.tld/this-url [L,R,NC]
but not work
Thanks so much