Re: [OT] webserver ?

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

 



On Mon, May 03, 2004 at 08:23:34PM +0200, Alexander Dalloz wrote:
> Date: Mon, 03 May 2004 20:23:34 +0200
> From: Alexander Dalloz <alexander.dalloz@xxxxxxxxxxxxxxxx>
> To: hunter@xxxxxxxxxxxxxxxx,
>         For users of Fedora Core releases <fedora-list@xxxxxxxxxx>
> Cc: 
> Subject: Re: [OT] webserver ?
> Reply-To: For users of Fedora Core releases <fedora-list@xxxxxxxxxx>
> 
> Am Mo, den 03.05.2004 schrieb Michael Weiner um 19:31:
> 
> > I have a rather large domain i am responsible for running a webserver,
> > and in an effort to improve the site's rankings in search engines, a
> > consulting firm has suggested some interesting changes to the way the
> > webserver operates. Their first suggestion which i am struggling with is
> > to take all requests to http://w.blah, http://ww.blah and send a 301
> > redirect back to the user to http://www.blah. Not being an apache
> > rewrite module expert, i thought i would throw the question out to the
> > community at large and see what suggestions might arise.
> 
> 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.

I think, for the rewrite to trigger you also need a DNS entry or your web server will
never see the request to act on it.   

Try to see if the firm giving you the suggestion follows their own
advice.  ;-)  if not ask them why not.


-- 
	T o m  M i t c h e l l 
	/dev/null the ultimate in secure storage.



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

  Powered by Linux