RE: [SAC] to www or not to www...

Re-sending this...

I believe that this is important; we only want one presence.
http://foo.osgeo.org/ should not be returning the same content as
http://www.osgeo.org/

Jason

-----Original Message-----
From: sac-bounces@lists.osgeo.org [mailto:sac-bounces@lists.osgeo.org]
On Behalf Of Jason Birch
Sent: Thursday, January 11, 2007 14:28
To: sac@lists.osgeo.org
Subject: [SAC] to www or not to www...

Hi all,

I think that we should make requests to osgeo.org on port 80 redirect to
www.osgeo.org to allow a more consistent image and to avoid offending
the SEO gods...

If .htaccess files are allowed and mod_rewrite enabled, dumping
something like this into an .htaccess file in www.osgeo.org 's document
root should work:

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !www\.osgeo\.org [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^(.*)$ http://www.osgeo.org/$1 [R=PERMANENT]

Jason

Thanks jason, i just fixed this.

i just added this to the conf file.

RewriteCond %{HTTP_HOST} !^www\.osgeo\.org [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^/(.*) http://www.osgeo.org/$1 [L,R]

shawn

Jason Birch wrote:

Re-sending this...

I believe that this is important; we only want one presence.
http://foo.osgeo.org/ should not be returning the same content as
http://www.osgeo.org/

Jason

-----Original Message-----
From: sac-bounces@lists.osgeo.org [mailto:sac-bounces@lists.osgeo.org]
On Behalf Of Jason Birch
Sent: Thursday, January 11, 2007 14:28
To: sac@lists.osgeo.org
Subject: [SAC] to www or not to www...

Hi all,

I think that we should make requests to osgeo.org on port 80 redirect to
www.osgeo.org to allow a more consistent image and to avoid offending
the SEO gods...

If .htaccess files are allowed and mod_rewrite enabled, dumping
something like this into an .htaccess file in www.osgeo.org 's document
root should work:

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !www\.osgeo\.org [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^(.*)$ http://www.osgeo.org/$1 [R=PERMANENT]

Jason
_______________________________________________
Sac mailing list
Sac@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/sac