Created
January 27, 2015 13:40
-
-
Save evemilano/a00c95ccdb79bccae596 to your computer and use it in GitHub Desktop.
Redirezionare tutte le pagine
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
| #Reindirizzare tutte le pagine di olddomain.com verso newdomain.com | |
| Options +FollowSymLinks | |
| RewriteEngine on | |
| RewriteCond %{HTTP_HOST} ^www.olddomain.com$ [OR] | |
| RewriteCond %{HTTP_HOST} ^olddomain.com$ | |
| RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=301,L] |
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/