Created
January 27, 2015 13:27
-
-
Save evemilano/d2a08935f3df8b884913 to your computer and use it in GitHub Desktop.
Redirezioni per User Agent
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| RewriteEngine On | |
| RewriteCond %{HTTP_HOST} ^www.olddomain.com$ [OR] | |
| RewriteCond %{HTTP_HOST} ^olddomain.com$ | |
| RewriteCond %{HTTP_USER_AGENT} Googlebot [OR] | |
| RewriteCond %{HTTP_USER_AGENT} msnbot [OR] | |
| RewriteCond %{HTTP_USER_AGENT} Slurp | |
| RewriteRule ^(.*)$ http://bcd.com/$1 [L,R=301] |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://www.evemilano.com/2014/10/esempi-mod-rewrite-htaccess-apache/