Why there is "/t" and "/c" in the urls?


(Love Chopra ) #1

Hi,

I want to understand why there is “/t” for topics and “/c” for categories in the urls? and why there is “Id” in the urls? Why these urls are not simply cleaner like Quora.com urls?

In today’s SEO we should use clean urls and its bad for SEO to have these pattern of url which contains Ids.

Can anybody help me understand why these pattern based urls considered in system design?


(cpradio) #2

What a load of crock! Show me where it is bad for SEO, do a google search for discussions that occur on HTG, BoingBoing, Sitepoint, etc. where they are not getting top rated search results and they should be. You won’t! Because your theory is unfounded.


(Love Chopra ) #3

Hey @cpradio, Thanks for your quick reply, I genuinely want to understand what’s the reason discourse has decided to go with these patterns of urls and not the more cleaner version of urls whose sludge starts from root like quora? wordpress urls also starts from the root and its clean
Please help me understand why discourse has used this pattern, my question might found you silly but I want to understand the reason behind it? Thx


(cpradio) #4

Because they wanted an easy way to route between topics, categories, and everything else. If you simply did mysite.com/slugname how do you know if it is a category or a topic without a lot of processing behind the scenes? And what do you do if someone gives a topic title the same name as a category?

What they did was smart and saved a lot of processing.


(Erick Guan) #5

I think he is asking about why not use /topic instead of /t. My answer is it is simpler.


(Love Chopra ) #6

@fantasticfears I m asking why /t why not sludge start from root domain itself?


(Love Chopra ) #7

Hi @codinghorror request you to please share your views on this topic? Thanks


(Mittineague) #8

My take is that lovechopra1 is thinking in terms of WordPress permalink structure and has been misled by SEO mumbo jumbo.

For example, one might think that a URL like
https://meta.discourse.org/t/reddit-oauth-api-support/21939/3
could be bad for SEO. Yet obviously it’s not


(Jeff Atwood) #9

The existing answers are correct. There are a lot of technical hurdles to making prefix-less URLs work. What if categories are renamed? What if a topic is renamed? What if the slugs overlap?

The technical hurdles of

http://example.com/topic-title/1234

and

http://example.com/category/

are quite severe. Having a few extra characters in the URL is no big deal in comparison.

(And it was already shortened from /topic/ and /category/ a while ago.)