Topic links
Author
Discussion

NiceCupOfTea

Original Poster:

25,586 posts

280 months

Wednesday 17th September 2008
quotequote all
I notice that in the last few weeks the links to topics have changed from simple short URLs with a number at the end so some huge thing with All+the+words+in+the+title as well as the numbers.

It's a bit annoying as you end up with a huge link for topics with big titles! Yet if you delete the words it still works! Any reason for this?

miniman

30,019 posts

291 months

Wednesday 17th September 2008
quotequote all
The appending of the title is not essential for the loading of the thread (just the thread ID needed for that) but is there for SEO purposes.

HTH

NiceCupOfTea

Original Poster:

25,586 posts

280 months

Wednesday 17th September 2008
quotequote all
I know it still works, but it's a faff to delete the right number of letters. If you don't you end up with a silly link!

What are SEO purposes?

miniman

30,019 posts

291 months

Wednesday 17th September 2008
quotequote all
Search Engine Optimisation. Essentially search engines like "human readable" URLs and this is an attempt to give those to them. They aren't perfect (for example there shouldn't really be spaces, it ought really to be a hyphen instead of a space) but they are better than nothing (for search engines!)

In a perfect world, the servers would respond to various shorter URLs, e.g. instead of

gassing/topic.asp?h=0&f=24&t=585540&nmt=Topic%20links

it would be good if it would respond to

gassing/585540

But gassing/Topic-Links (whilst theoretically perferable) would be impossible - for example which of the 1,304,084 "what car" threads would gassing/what-car point to? hehe

In other words, this bit ?h=0&f=24 and this bit &nmt=Topic%20links are not specifically required to locate the topic in the database. IIRC h=0 makes the site display as PH, if you change h=0 to h={some other number} the site appears in different branding (but only using PH Classic skin it would seem). The f=24 I think is the forum ID - not entirely sure why it's in the URL because I would imagine the topic ID should be unique within the entire database.

There's a similar mechanism for looking up user profiles, e.g.

www.pistonheads.com/~NiceCupOfTea

But [michaelcaine] not a lot of people know that [/michaelcaine] wink

ETA - I know all this because I am a bit of a nerd and tend to type with stuff smile

Edited by miniman on Wednesday 17th September 21:33

NiceCupOfTea

Original Poster:

25,586 posts

280 months

Wednesday 17th September 2008
quotequote all
Ah, fair enough, thanks for the explanation. Tis just a bit of a ballache though frown

Mr Will

13,719 posts

235 months

Thursday 18th September 2008
quotequote all
Well, that's saved me a bit of work! Spot on explanation.

miniman - If you keep on like this we will have to start paying you! hehe