.htaccess -> redirect all traffic?

Discussion in 'HTML' started by still me, Nov 9, 2007.

  1. still me

    still me Guest

    Will this instruction redirect *all* traffic (any page requested) from
    the requested domain to the new domain?

    Redirect 301 / http://www.example.com/

    Thanks,
    still me, Nov 9, 2007
    #1
    1. Advertising

  2. still me wrote:

    > Will this instruction redirect all traffic (any page requested) from
    > the requested domain to the new domain?
    >
    > Redirect 301 / http://www.example.com/


    Short answer: Yes.

    And by using 301 ("permanent"), you're also indicating to search
    engines and other spiders that http://www.example.com/ will be the
    permanent replacement for your site.

    See also the Apache manual:
    http://httpd.apache.org/docs/2.0/mod/mod_alias.html#redirect

    --
    Kim André Akerø
    -
    (remove NOSPAM to contact me directly)
    =?iso-8859-1?Q?Kim_Andr=E9_Aker=F8?=, Nov 10, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. David Dorward
    Replies:
    2
    Views:
    1,695
    Art Sackett
    Jun 29, 2003
  2. John Bokma
    Replies:
    0
    Views:
    879
    John Bokma
    Jun 28, 2003
  3. brucie
    Replies:
    0
    Views:
    741
    brucie
    Jun 28, 2003
  4. Craig Bennett
    Replies:
    2
    Views:
    1,045
    Craig Bennett
    Jun 29, 2003
  5. Sal
    Replies:
    1
    Views:
    401
Loading...

Share This Page