Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

URL witout "www."
(1 viewing) (1) Guest
Support forum for users using free edition of JoomSEF 3 (Joomla 1.5 compatible). These forums are mainly for mutual help between users.

Please note that due to our capacity limitations, we do not monitor these forums regularly.
  • Page:
  • 1

TOPIC: URL witout "www."

URL witout "www." 17 years, 7 months ago #2124

HI,

How can I fix this...

All site adress came without "www." . Juste site name.com

I have lots of problems with google sitemap because google don´t read just site.com.

Any ideia?

Thanks...

Re:URL witout "www." 17 years, 7 months ago #2174

Actually, you can do google sitemaps just fine with domain.com, you just have to set the site up as domain.com and not www.domain.com in the google webmaster tools. However, in your .htaccess file, you can setup your site to default to www.domain.com whether they type www.domain.com or domain.com in the address bar. In order to make all requests for your site go to www.domain.com you need something like this in your .htaccess file:

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

Mind you, you only have a .htaccess file if you are on an apche server, and usually you are only on apache if you are hosted on a linux server. If you have windows hosting with IIS, then you need the mod rewrite thing, and I'm not sure exactly how to make that work. I tried at one time, but then realized it was just easier to switch to linux hositng, so I did:)

Hope this has helped,
David Henderson
  • Page:
  • 1
User Login Empty