besly98 Posted March 1, 2010 Share Posted March 1, 2010 HI all, not sure if this is the right forum to put this in. but im optimizing for seo and want to put this error right. " Search engines may think footy-manager.com and www.footy-manager.com are two different sites.You should set up a permanent redirect (technically called a "301 redirect") between these sites. Once you do that, you will get full search engine credit for your work on these sites. " how do i fo this? whta code will i need to put in the .htaccess file? thanks Link to comment https://forums.phpfreaks.com/topic/193781-301-redirects/ Share on other sites More sharing options...
haku Posted March 2, 2010 Share Posted March 2, 2010 Add this to your .htaccess: RewriteCond %{HTTP_HOST} ^example\.com$ [NC] RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301] Changing 'example.com' to your actual domain. This will forward the non-www version of the site to the www version of the site. Link to comment https://forums.phpfreaks.com/topic/193781-301-redirects/#findComment-1020234 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.