Problem with dual content

#1
[eluser]schottoftcomonline[/eluser]
Hello, i'm havin trouble with dual content, how can i fix the " www. or without www." ?
Can anyone help me please?
Thanks, Schott-Oft

#2
[eluser]InsiteFX[/eluser]

HTAccess Tips and Tricks


#3
[eluser]schottoftcomonline[/eluser]
Thanks alot! i'll take a look and let you know soon as i get results.

#4
[eluser]InsiteFX[/eluser]
Code:
// Force the www.

RewriteEngine On
RewriteCond %{HTTP_HOST} ^your-site.com [NC]
RewriteRule ^(.*)$ http://www.your-site.com/$1 [L,R=301]

// Remove the www.

RewriteEngine On
RewriteCond %{HTTP_HOST} !^your-site.com$ [NC]
RewriteRule ^(.*)$ http://your-site.com/$1 [L,R=301]


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.