Which redirect code is best for this.........?

Discussion in 'Site & Server Administration' started by local-realtor, Jun 21, 2007.

  1. #1
    We need to redirect base url's with a server code so how should I move mysite.com to mysite.com/Portal ?

    Which redirect code is best for SEO 200 or 301? Gut feeling is a 301 redirect code?

    let me know

    Thanks
    LR
     
    local-realtor, Jun 21, 2007 IP
  2. bouncer69

    bouncer69 Peon

    Messages:
    978
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Just make a 301 permanent redirect code which will be fine for SEO

    Example:
    RedirectMatch permanent ^/$ http://www.mysite.com/Portal
    PHP:
     
    bouncer69, Jun 21, 2007 IP
  3. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #3
    301 redirect. But I guess the above will be a never ending loop. Even /Portal will be chainly redirectoed to /Portal...isn't it ?
     
    agnivo007, Jun 21, 2007 IP
  4. inworx

    inworx Peon

    Messages:
    4,860
    Likes Received:
    201
    Best Answers:
    0
    Trophy Points:
    0
    #4
    301 Redirect.

    You can do that from your cPanel.
     
    inworx, Jun 22, 2007 IP
  5. bouncer69

    bouncer69 Peon

    Messages:
    978
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    0
    #5
    It will just redirect to /portal and end the loop :cool:


     
    bouncer69, Jun 22, 2007 IP