.htaccess Redirect Help - old to new URL

Discussion in 'Apache' started by faisalbasra, Feb 20, 2011.

  1. #1
    Hello, I need help to redirect all old URLs to New URLs, my case is the following

    I have 2000 user profiles like this,
    domain.com/people/username

    Now, website changed and URLs are look like

    domain.com/username

    Just the directory i.e. people is removed from URL...... I will be more than thankful to your help.
     
    faisalbasra, Feb 20, 2011 IP
  2. mwasif

    mwasif Active Member

    Messages:
    816
    Likes Received:
    23
    Best Answers:
    1
    Trophy Points:
    70
    #2
    Try this rule for profile pages

    RewriteEngine On
    RewriteRule ^poeple/(*.)$ http://domain.com/$1 [R=301, L]
    Code (markup):
     
    mwasif, Feb 21, 2011 IP