htaccess

Discussion in 'HTML & Website Design' started by fgsg, Apr 20, 2013.

  1. #1
    Hello,

    How i can in htaccess file redirect some link example:
    page.com/example1
    page.com/example2

    redirect on example page.com/redirect ?

    Thanks.
     
    fgsg, Apr 20, 2013 IP
  2. Nigel Lew

    Nigel Lew Notable Member

    Messages:
    4,642
    Likes Received:
    406
    Best Answers:
    21
    Trophy Points:
    295
    #2
    Nigel Lew, Apr 20, 2013 IP
  3. betteb

    betteb Well-Known Member

    Messages:
    155
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    128
    #3
    It sounds like he wants to do a 301 redirect of certain pages using htaccess. If you have cPanel, you can just set redirects in there, that is easier. Otherwise, it is something like this ---

    RewriteCond %{HTTP_HOST} ^.*$
    RewriteRule ^pagename\.htm$ "http\:\/\/www\.domain\.com\/pagename2\.htm" [R=301,L]
     
    betteb, Apr 21, 2013 IP