HOME TIPS FORUMS DOWNLOADS
   »»  Tips Archive |
Webmaster : www.yoursite.com or yoursite.com?
Posted by tl001 on 2005/6/11 12:10:32 (3623 reads)
Webmaster

Xoops offers the flexibility of reaching your site through www.yoursite. or yoursite.com

This makes life easier for visitors to find you. However, it also brings out "log-in" twice problems and potentially spider/robot issues.



to quote an authoritative view from GoogleGuy [at webmasterworld] on the issue
Quote:


My rule of thumb is to pick a root page and be as consistent as possible. I lean toward choosing http://www.yourdomain.com/ but that's just me; http://yourdomain.com/ would work as well. Then I recommend that you make things as simple as possible for spiders. I recommend absolute links instead of relative links, because there's less chance for a spider (not just Google, but any spider) to get confused. In the same fashion, I would try to be consistent on your internal linking. Once you've picked a root page and decided on www vs. non-www, make sure that all your links follow the same convention and point to the root page that you picked. Also, I would use a 301 redirect or rewrite so that your root page doesn't appear twice. For example, if you select http://www.yourdomain.com/ as your root page, then if a spider tries to fetch http://yourdomain.com/ (without the www), your web server should do a permanent (301) redirect to your root page at http://www.yourdomain.com/

So the high-order bits to bear in mind are
- make it as easy as possible for search engines and spiders; save calculation by giving absolute instead of relative links.
- be consistent. Make a decision on www vs. non-www and follow the same convention consistently for all the links on your site. Use permanent redirects to keep spiders fetching the correct page.


Hervé is implementing many new things to the news module. One of the improvements is the use of absolute links in the module. This is great in terms of spider/robots. Hopefully, other module developers will follow.

As of 301 redirect, anyone interested in implementing the technique may want to read this TIP:

http://xoops-tips.com/news-article.storyid-86.htm

Printer Friendly Page Send this Story to a Friend
The comments are owned by the poster. We aren't responsible for their content.
Poster Thread
Chappy
Posted: 2005/7/1 2:17  Updated: 2005/7/1 2:17
Just popping in
Joined: 2004/8/17
From: Rowlett, TX
Posts: 20
 Re: www.yoursite.com or yoursite.com?
What version of news has the absolute links and how do you set the news mod to use them? I much prefer absolute links if I can have them. I have the latest version of news that I am aware of and t still has the queries in the links.

Thanks
tl001
Posted: 2005/7/1 9:07  Updated: 2005/7/1 9:07
Webmaster
Joined: 2004/6/10
From:
Posts: 282
 Re: www.yoursite.com or yoursite.com?
Chappy:

Absolute links have nothing to do with query strings.

It is something like

relative link
/modules/news/article.php?storyid=xxxx
vs. absolute link
yoursite/modules/news/article.php?storyid=xxxx

It "saves" the "translating time" - this is the impression I got from Googleguy.

tl