What ways to do 301 redirect in Joomla ?

Discussion in 'Joomla' started by Predator007, Sep 28, 2010.

  1. #1
    Hi,
    One of my new Joomla site is opening without "www".
    search engines feel the website has two versions and consider it duplicate content.
    Please help me to know that what is the way to do 301 redirect in Joomla.

    Thanks in advance.
     
    Predator007, Sep 28, 2010 IP
  2. extremephp

    extremephp Peon

    Messages:
    1,290
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What Do You actually Want? Only WWW Version? OR Non WWW Version??

    ~ExP~
     
    extremephp, Sep 28, 2010 IP
  3. Predator007

    Predator007 Active Member

    Messages:
    301
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    55
    #3
    i want my site with "www"
    please also suggest me if "www" is good or without "www" ?
    Thakns
     
    Predator007, Sep 28, 2010 IP
  4. extremephp

    extremephp Peon

    Messages:
    1,290
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    0
    #4
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^domain\.com
    RewriteRule (.*) http://www.domain.com/$1 [R=301,L]
    
    
    Code (markup):
    Add these to your .htaccess!

    ~ExP~
     
    extremephp, Sep 28, 2010 IP
  5. Predator007

    Predator007 Active Member

    Messages:
    301
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    55
    #5
    Hi,
    Thanks for your help.
    but I'm unable to do it.
    in ftp - public.html I found .htaccess file but it is in notepad.
    please suggest me how can I do that?

    Thanks
     
    Predator007, Sep 28, 2010 IP