Perla2018 Posted January 1, 2014 Share Posted January 1, 2014 Good evening, I want to ask if this 301 redirect exact, though it's a 301 redirect PERMANENT: RewriteEngine On RewriteCond %{HTTP_HOST} ^(www.)?www.miosito.it$ RewriteRule ^(/)?$ home [L] thanks. Link to comment Share on other sites More sharing options...
vekia Posted January 1, 2014 Share Posted January 1, 2014 in this code there is no information about 301 redirection you have to use r=301 param, like this: [R=301,L] (instead of simple [L] Link to comment Share on other sites More sharing options...
Perla2018 Posted January 1, 2014 Author Share Posted January 1, 2014 Graziemi write the exact code to put in the htacces? As I wrote ... Link to comment Share on other sites More sharing options...
Perla2018 Posted January 1, 2014 Author Share Posted January 1, 2014 so? RewriteEngine On RewriteCond %{HTTP_HOST} ^(www.)?www.miosito.it$ RewriteRule ^(/)?$ home [R=301,L] Link to comment Share on other sites More sharing options...
Perla2018 Posted January 1, 2014 Author Share Posted January 1, 2014 Written as above does not work .... Link to comment Share on other sites More sharing options...
Perla2018 Posted January 1, 2014 Author Share Posted January 1, 2014 RewriteEngine onRewriteCond %{HTTP_HOST} ^.*$RewriteRule ^(.*)$ http://www.miosito.com/new [R=301,L] con questo funziona va bene per indirizzare da www.miosito.it a www.miosito.it/home su htacces Link to comment Share on other sites More sharing options...
Perla2018 Posted January 2, 2014 Author Share Posted January 2, 2014 RewriteEngine onRewriteCond %{HTTP_HOST} ^.*$RewriteRule ^(.*)$ http://www.miosito.com/new [R=301,L] this works fine for direct from www.miosito.it www.miosito.it in / home htacces without losing the google index? Link to comment Share on other sites More sharing options...
vekia Posted January 2, 2014 Share Posted January 2, 2014 you will not loose google index with this redirection. 301 redirect is the best for seo purposes Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now