RE: [OT] webserver ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux