URL Redirection Problem with .htaccess

Discussion in 'Site & Server Administration' started by tplink60, Jan 8, 2012.

  1. #1
    Hi, I have to make a redirection for an old article: http://www.example.com/articles.html. I want to redirect it to a new URL: http://www.example.com/guides.html. Here is the code I used in the .htaccess file under the root directory of my web host:
    Redirect /articles.html  /guides.html
    Code (markup):
    It works well! But later I found another page (http://www.example.com/product/articles.html) has also been directed to that page (/guides.html)... I doesn't want the rule to affect any page under any subfolder on my website. How to avoid such problem? Thanks very much!
     
    tplink60, Jan 8, 2012 IP
  2. kabbs

    kabbs Member

    Messages:
    171
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    38
    #2
    Are you using wordpress or another platform???
    If your site is on wordpress,there are great plugins you can use.
    Lemme know./
     
    kabbs, Jan 9, 2012 IP