0
Welcome Guest! Login
0 items Join Now

Joomla/ google and www.

  • Joomla/ google and www.

    Posted 15 years 10 months ago
    • When I search for my site on google.. the WWW. does not show up.. it shows up as http://{sitename}.com ???

      Is there a SEO extension i should use?

      Thanks
    • Tyndie's Avatar
    • Tyndie
    • Preeminent Rocketeer
    • Posts: 8803
    • Thanks: 3

    Re: Joomla/ google and www.

    Posted 15 years 10 months ago
    • Add this rule to your htaccess file:
       
      RewriteCond %{HTTP_HOST} !^www\.
      RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
       

      Also add this too for seo purposes:
       
      Redirect 301 /home http://www.domain.com
       

      Change the domain.com to your domain name.

      Also a couple of other things that are good for seo:

      Install XMAP from JED and set up a sitemap, then in htaccess add:
      RewriteCond %{REQUEST_URI} ^/sitemap.xml
      RewriteRule .* /index.php?option=com_xmap&view=xml&no_html=1

      and then in robots.txt add at the top so it is:
      Sitemap: http://www.domain.com/sitemap.xml
       
      User-agent: *
      Make sure there is an extra carriage space beween the site map command and the user agent command. Also change domain.com to your domain again. Then, google, yahoo, msn, ask etc will pick up your sitemap when they come calling.
    • Rob Went's Avatar
    • Rob Went
    • Rocketeer
    • Posts: 75
    • Thanks: 0

    Re: Joomla/ google and www.

    Posted 15 years 10 months ago
    • I've just added this to all my sites and everything works fine with the redirects, but when I try to get into the backend I enter the username and password and the page just refreshes and clears the username and password fields.

      Any idea what i've done wrong?
    • http://www.robertwent.com
    • Tyndie's Avatar
    • Tyndie
    • Preeminent Rocketeer
    • Posts: 8803
    • Thanks: 3

    Re: Joomla/ google and www.

    Posted 15 years 10 months ago
    • Can you provide a link to your site please
    • Rob Went's Avatar
    • Rob Went
    • Rocketeer
    • Posts: 75
    • Thanks: 0

    Re: Joomla/ google and www.

    Posted 15 years 10 months ago
    • Tyndie's Avatar
    • Tyndie
    • Preeminent Rocketeer
    • Posts: 8803
    • Thanks: 3

    Re: Joomla/ google and www.

    Posted 15 years 10 months ago
    • seems to be fixed now.
    • Rob Went's Avatar
    • Rob Went
    • Rocketeer
    • Posts: 75
    • Thanks: 0

    Re: Joomla/ google and www.

    Posted 15 years 10 months ago
    • Tyndie's Avatar
    • Tyndie
    • Preeminent Rocketeer
    • Posts: 8803
    • Thanks: 3

    Re: Joomla/ google and www.

    Posted 15 years 10 months ago
    • you had an a condition in your htaccess that you didnt need, which was interfering with the administrator login page. i overwrote your htaccess with a fresh one, using the www fixes in this thread.
    • Rob Went's Avatar
    • Rob Went
    • Rocketeer
    • Posts: 75
    • Thanks: 0

    Re: Joomla/ google and www.

    Posted 15 years 10 months ago
    • Ben Lee's Avatar
    • Ben Lee
    • Elite Rocketeer
    • Posts: 4193
    • Thanks: 42

    Re: Joomla/ google and www.

    Posted 15 years 10 months ago
    • Some good info right from Google!

      If you sign up for their webmaster tools, you can designate how you want them to display your url in search results. The .htaccess was a need to do thing anyways...this is just the extra stuff if you want.

      Canonicalization
      To gain more control over how your URLs appear in search results, and to consolidate properties, such as link popularity, we recommend that you pick a canonical (preferred) URL as the preferred version of the page. You can indicate your preference to Google in a number of ways. We recommend them all, though none of them is required (if you don't indicate a canonical URL, we'll identify what we think is the best version)...

Time to create page: 0.068 seconds