HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=4)
-   -   apaceh & google duplicate content (http://www.howtoforge.com/forums/showthread.php?t=61589)

carpman 24th April 2013 10:09

apaceh & google duplicate content
 
Hi, i wish to avoid google duplicate content issues with site so need to have redirect for

http://site.com
to
www.site.com

This can be done via htaccess, but is bit of a kludge, can also be done via Apache with:

Code:

<VirtualHost *>
  ServerName www.example.com
  Redirect 301 / http://example.com/
</VirtualHost>

In ispconfig where do i put this?

Does it need to be done for each domain or can i have general setting?

Also can it be added to a template for future domains?

thanks


All times are GMT +2. The time now is 00:39.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.