Re: [OT] webserver ?

From: Aaron Matteson (fedora_at_cryptosystem.us)
Date: 05/03/04

  • Next message: Ron Goulard: "Re: Old farts and new Linux"
    Date: Mon, 3 May 2004 14:45:07 -0700
    To: For users of Fedora Core releases <fedora-list@redhat.com>
    
    

    Alexander Dalloz became daring and sent these 2.3K bytes,
    > 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 might be way off, but wouldn't it be quicker to use a vhost to
    redirect?

    -- 
      0 1 0  -> Aaron M Matteson - 0xD144B7FF
      0 0 1  --> The worlds tallest dwarf, both kindly and helpful!
      1 1 1  ---> Windows and Linux C++/C# Developer
      ------------------------------------------------------------------------
      The engineer is neither optimist nor pessimist. He sees the proverbial
      half-full/empty glass and says, "The glass is twice as big as there is
      any need for it to be."  
      ------------------------------------------------------------------------
      http://mindstorm.ath.cx:8080/index.php/Projects - Project Page
      http://mindstorm.ath.cx:8080/wordpress/ - My Opinionated Blog
    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Ron Goulard: "Re: Old farts and new Linux"

    Relevant Pages

    • Re: Another recently shipped POTC difference...
      ... a PHP issue or an issue with your webserver. ... It does an automatic redirect to ... missing and your web server is setup to redirect on a 404 to the root ... It's also possible that your webhost could have a load balancing setup ...
      (rec.games.pinball)
    • Sun One webserver: Setting as UseCanonicalName in apache?
      ... I'm looking for a setting in the configuration for the SunOne ... webserver, that changes the 'redirect' behaviour of the webserver. ... It redirects the traffic to port 5020 on which the ...
      (comp.unix.solaris)
    • Sun One webserver: Setting as UseCanonicalName in apache?
      ... I'm looking for a setting in the configuration for the SunOne ... webserver, that changes the 'redirect' behaviour of the webserver. ... It redirects the traffic to port 5020 on which the ...
      (comp.sys.sun.apps)