htaccess redirection not working for my website

Discussion in 'Search Engine Optimization' started by sansinin, Sep 14, 2012.

  1. #1
    hi

    Following is my website "Treffer tech (dot) com".

    301 redirection is not working for my website...please check is there anything i need to do with website.

    I have created .htaccess file and added the given below code

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^example.com/ [NC]
    RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]

    but it is not working...please share your ideas..

    thanks
     
    sansinin, Sep 14, 2012 IP
  2. Web Solutions

    Web Solutions Peon

    Messages:
    64
    Likes Received:
    1
    Best Answers:
    5
    Trophy Points:
    0
    #2
    You need to replace example with your own domain name (the one you are going to use this for).
     
    Web Solutions, Sep 14, 2012 IP
  3. queuemobile

    queuemobile Greenhorn

    Messages:
    99
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    6
    #3
    .htaccess normal coding not working for all the server, you have to write .htaccess code to your server related.
     
    queuemobile, Sep 14, 2012 IP
  4. thosino

    thosino Member

    Messages:
    174
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    46
    #4
    please change your code of htaccess file according to your server.
     
    thosino, Sep 15, 2012 IP