How to change domain.com into www.domain.com at the backend

Discussion in 'Joomla' started by morkat, Mar 1, 2011.

  1. #1
    Some joomla powered websites have url problem, their url changed from www.domain.com to domain.com or domain.com to www.domain.com automatically.

    Is this a server problem, domain management problem or joomla setting problem?

    Is their anyone can tell me how to solve it?
     
    morkat, Mar 1, 2011 IP
  2. dreamsoftinfotech

    dreamsoftinfotech Peon

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You just check htaccess redirect rule which is by default in joomla. If it is wrong you search htaccess rule in google and upload htaccess.txt file in server.problem will be solved.
     
    dreamsoftinfotech, Mar 2, 2011 IP
  3. san321

    san321 Active Member

    Messages:
    176
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    68
    #3
    there are extensions that manage this for you, most seo extensions will do it
     
    san321, Mar 6, 2011 IP
  4. tanphatimc

    tanphatimc Peon

    Messages:
    1
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    i think you should use .htaccess :
    RewriteCond %{HTTP_HOST} ^jw-extensions.net
    RewriteRule (.*) http://www.jw-extensions.net/$1 [R=301,L]
     
    tanphatimc, Mar 6, 2011 IP
    sarahk likes this.
  5. webrules

    webrules Peon

    Messages:
    112
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You can do it couple of ways. From your hosting account you can create a permanent redirect. You can also do it by .htaccess file.
     
    webrules, Apr 17, 2011 IP
  6. ProtoPC

    ProtoPC Peon

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Without a doubt, every Joomla site needs to have the redirect script shown above added to the htaccess...saves on many script issues.
     
    ProtoPC, May 7, 2011 IP
  7. innovati

    innovati Peon

    Messages:
    948
    Likes Received:
    63
    Best Answers:
    1
    Trophy Points:
    0
    #7
    in general it's best to display your URL's without the 'www.' in front of them. This is poor form and unnecessary.

    As people have said above, this can be done with your hosting provider, they will usually have a DNS editing tool that will let you configure this per-domain, and you can also do it manually for each site you wish with a re-write rule in a .htaccess file, but this is not quite as nice as having set it in your web hosting.

    Also, if you log into Google Webmaster tools you can configure how you want your domain to show up in Google, as well as submit a sitemap.xml and set a geographic target for your site, and customize the description Google uses when your site shows up in search results. If you haven't done this for your sites already I highly recommend it - it's free too!

    Take care, and best of luck :)
     
    innovati, May 23, 2011 IP