[OT] webserver ?

MW Mike Weiner (5028) MWeiner at ag.com
Wed May 5 15:22:28 UTC 2004


On Mon, 2004-05-03 at 14:23, Alexander Dalloz wrote:
> I don't know how such a redirect would influence search engine 
> ranking, but using mod_rewrite would looks like:
> 
> RewriteEngine on
> RewriteCond %{HTTP_HOST} !^www\.      [NC]
> RewriteCond %{HTTP_HOST} !^$
> RewriteRule ^(.*)        http://www.%{HTTP_HOST}/$1   [R=301]
> 
> (I hope it will survive line wrapping, above instructions are 4 lines)
> 
> See: http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html for further
details.

This works well for the w, ww, and subscequent www(x) requests, now I
have 1 step left, I need to add the same redirect behavior for JUST the
domain (i.e. blah.com) without the w's in front, again, send the client
the 301 and redirect to http://www.blah.com

Thanks.
Michael Weiner





More information about the fedora-list mailing list