Cheers - where is my topic for?, I’ve read the link at the top of the htaccess file but it doesn’t cover this. As I said same .htaccess file used for all sites.
-
☆ A M B ☆
- 3,141 Posts
I always use htaccess to either rewrite links to www.sitename.com or sitename.com (without the www) to prevent weird issues..
At some time I spent hours trying to figure out why an AJAX request wasn’t returning any information (while the script did trigger), this turned out to be related to whether www was included or not. AJAX can’t be used cross-domain, and "www.sitename.com" isn’t the same domain as "sitename.com" apparently.
-
☆ A M B ☆
- 3,141 Posts
Quote from: Kristalin at Jul 14, 2010, 05:15 AM
Quote from: Mark at Jul 14, 2010, 05:12 AM
....
what you thing about this:
http://www.ajax-cross-domain.com/
That.... is fancy :d
Edit: And expensive, € 55 for a single user license o.O
The real reason you want to do a redirect is for SEO.
Search engines consider www.xxx.com and xxx.com two different websites and therefor if someone links to version 1 and someone else links to version 2 you have have 1 link instead of 1+1 as if you had done a redirect.
Mui Importante!
Chrome 6 strips all http:// and www information now, thank christ! Stupid WWW.