Need terms to have absolute URLs...?

latte - September 27, 2007 - 21:08

It seems that Drupal uses relative URLs. I would like to change this to the full path or absolute URL. I'm using clean URLs on my site and I don't want to mess anything up.
Any help would be greatly appreciated.

Cheers,

Latte/

(no title)

cog.rusty - September 27, 2007 - 21:20

Can you give an example? You want to change what to what?

Oh I should have...

latte - September 28, 2007 - 00:06

I would like the links to change from

href="/britney-spears-engagement-rumors">Britney Spears Engagement Rumors

to

href="http://www.rockstarlove.com/britney-spears-engagement-rumors">Britney Spears Engagement Rumors

I do belive that this is better for SEO. and better for link backs.

Any idea how to do that??

Cheers,

Wes/

(no title)

cog.rusty - September 29, 2007 - 14:04

I think the only area where that matters is feeds and emails, which will not be rendered in the context of the site, and generally feed and mail modules do produce fully qualified URLs. If not, that should be a bug.

I can't imagine how that would matter in a page rendered by a browser, or for SEO.

Well...

latte - September 29, 2007 - 19:43

Let's take google for example. They look at all of the links to your site even the internal links. They add those links to the google index counting each one.

If I have, let's say 2500 external links to my site that look like http://www.rockstarlove.com/lindsay-lohans-mugshot and 5o internal links like "/lindsay-lohans-mugshot"on my site this will not add up to 2550 links. Google will treat this as two different sites and create two different records. Not to mention links that are www.rockstarlove.com or rockstarlove.com these also look like two different sites to google and yahoo.

Either way all links, either external or internal should be consistent for seo and for normalization. I'm not sure why internal site links ever became relative in the first place. Maybe some programer got lazy and did not want to type the full URL. :)

I'm not a programmer myself, I just like drupal and want to experiment with how things work and see how my site fluctuates on the Search Engines as I change things.

Remember, home is where you hang your hat, but if your not careful you may hang yourself.

Cheers,

Latte/

I am pretty sure both yahoo and google see them as the same

nevets - September 29, 2007 - 20:11

Vist it your own home page, hover of the link for "Guess Who", look in the status bar, you should see an absolute URL, look at the source and you will see that is actually a relative URL. The broweser, be it firefox, ie or google (yes google looks like a browser to the site) needs the absolute URL to follow the link. No need to output them that way though, the browser is smart enough to figure that out.

A couple of friends at Google suggest otherwise.

latte - September 30, 2007 - 04:05

Google released several new versions of google bot within the last few months. Each new google bot has it's own behavior and looks at different areas of your site. Some just check links and others look at the structure. These are very smart programs that are looking for relevance and good "quality" (google word) information.

They are also cracking down more on duplicate content and accessibility. They are even looking at HTML standards. They see more than what a browser can see. Firefox doesn't care if your page is broken it will guess and try to render it as best it can. IE will just screw it up no matter what. (IE sucks).

Google has hundreds of developers working to make the google software very smart. Browsers are not that smart.
Google basically scrapes the entire page (raw) and processes it on a number of different levels, then indexes what it deems important.

A browser, any browser just takes it as it is and displays it.

Check your logs and you will see googlebot coming from multiple IP addresses with different names. Each google bot has it's own reason for hitting your site.

looking at my server logs I found 4 different bots from google for the month of August.

Again each bot does it's own thing for it's own reason.
A quote from a dev (my friend) at goggle is "Relative links are not a good Idea. Your CMS should use absolute URIs for every link."

Cheers,

Latte/

Anybody?

latte - September 29, 2007 - 04:50

This would really be a nice thing to do.
Any help would be appreciated.

Cheers,

Latte

 
 

Drupal is a registered trademark of Dries Buytaert.