[RFC] Human Readable URLs

Note: We are moving the topics of this forum and it will be deleted at some point

Publish your own request for comments/change or patches for the next version of phpBB. Discuss the contributions and proposals of others. Upcoming releases are 3.2/Rhea and 3.3.
Locked
User avatar
naim
Registered User
Posts: 50
Joined: Thu Oct 13, 2011 7:21 pm
Location: Isolation
Contact:

Re: [RFC] Human Readable URLs -- A Simple Proposal

Post by naim »

AmigoJack wrote: Needless to say: this only works with languages using latin characters - what about accents? Ogoneks? Tremas? Or characters from Katakana, Cyrillic, Greek, Hangul...? It should even give English users a little headache as there's no rule what happens to titles like this versus that:

Code: Select all

it's karma
its karma
Seems to work with non-Latin characters on Wikipedia.
Invalid uri characters would be replaced or removed.

Senky
Extension Customisations
Extension Customisations
Posts: 315
Joined: Thu Jul 16, 2009 4:41 pm

Re: [RFC] Human Readable URLs

Post by Senky »

Why not simply add topic_title_slug into DB table and instead of search, it would work in just the same way as topic_id (SQL query will not try to fetch data of specified ID, but slug instead). Slug would need to be unique, of course, but it is not a big deal to write function for generating slug after new topic has been submitted. And maybe also give an option for an admins to alter it - just like it is now in phpBB SEO MOD.

User avatar
brunoais
Registered User
Posts: 964
Joined: Fri Dec 18, 2009 3:55 pm

Re: [RFC] Human Readable URLs

Post by brunoais »

I think that somewhat joining the last 4 posts is the best idea.
The clean title (same as there's a username_clean).
The title GET var may be used like Pony99CA stated. It's a dummy if there's enough info to get to the topic (having the topic_id or the post_id as GET variables) else it would redirect the user to a "search journey" :) to locate the topic with that title. If there's only one, then go to that one and ask no more questions, if there's, at least, 2 topics with that title, display a search result page with the multiple topics that match to that title.

Like @naim stated, we can convert characters like the "'" to entities or just replace them with underscores.

Oleg
Posts: 1150
Joined: Tue Feb 23, 2010 2:38 am
Contact:

Re: [RFC] Human Readable URLs -- A Simple Proposal

Post by Oleg »

Pony99CA wrote:

Code: Select all

http://www.phpbb.com/community/viewtopic.php?f=64&t=2100309&title=SEF_SEO_URLs
I don't expect SEO people to be happy with this.

User avatar
imkingdavid
Registered User
Posts: 1050
Joined: Thu Jul 30, 2009 12:06 pm

Re: [RFC] Human Readable URLs -- A Simple Proposal

Post by imkingdavid »

Oleg wrote:
Pony99CA wrote:

Code: Select all

http://www.phpbb.com/community/viewtopic.php?f=64&t=2100309&title=SEF_SEO_URLs
I don't expect SEO people to be happy with this.
Perhaps it's not what they're going for, but even still when I see human-readable URLs on other boards, vBulletin for instance, both the topic/forum ID and the topic/forum title are still included in the URL. Take this URL from vBulletin.com's forum:

Code: Select all

https://www.vbulletin.com/forum/forumdisplay.php/148-vBulletin-4-Suggestions
The first 3 numbers are the forum ID. The rest is a human-readable title of the forum.
Now look at this:

Code: Select all

https://www.vbulletin.com/forum/forumdisplay.php/148
That goes to exactly the same place.
As does this:

Code: Select all

https://www.vbulletin.com/forum/forumdisplay.php/148-BLAH
I don't see how that is really too much different than what Steve suggested, except that it uses a mod_rewrite-powered directory appearance rather than the original query string appearance. In either case, the readable part is meaningless.

EDIT: To note, providing only a string in the above URL without the ID does not result in the search behavior described by Steve. I think that having an "Oops, I couldn't find that (forum/topic), perhaps one of these is what you are looking for?" message with a short list of possible matches would be a nice improvement to the existing idea.
I do custom MODs. PM for a quote!
View My: MODs | Portfolio
Please do NOT contact for support via PM or email.
Remember, the enemy's gate is down.

Oleg
Posts: 1150
Joined: Tue Feb 23, 2010 2:38 am
Contact:

Re: [RFC] Human Readable URLs

Post by Oleg »

Since the point of this is to do SEO, it's rather pointless to replace one SEO-poor implementation with another.

While having human-readable urls for humans is nice, in my opinion it is the SEO that makes these changes worthwhile.

ecwpa
Registered User
Posts: 181
Joined: Mon Jan 24, 2005 2:10 am
Contact:

Re: [RFC] Human Readable URLs

Post by ecwpa »

I think imkingdavid's point is that if you implement that kind of URLs by default (not a mod or extension) it would be half of the job already done, then if you really want to have SEO URLs you only have to apply mod_rewrite as you like.
Slightly better English than it was in 2005, still improving :D

User avatar
Pony99CA
Registered User
Posts: 986
Joined: Sun Feb 08, 2009 2:35 am
Location: Hollister, CA
Contact:

Re: [RFC] Human Readable URLs

Post by Pony99CA »

Oleg wrote:Since the point of this is to do SEO, it's rather pointless to replace one SEO-poor implementation with another.

While having human-readable urls for humans is nice, in my opinion it is the SEO that makes these changes worthwhile.
Perhaps it's not ideal for SEO, but could you check the topic's Subject again. ;)

And, as ecpwa said, we might have fought half the battle. Besides, I thought that the important part for SEO was getting the keywords in the URL, which this does.

Steve
Silicon Valley Pocket PC (http://www.svpocketpc.com)
Creator of manage_bots and spoof_user (ask me)
Need hosting for a small forum with full cPanel & MySQL access? Contact me or PM me.

Oleg
Posts: 1150
Joined: Tue Feb 23, 2010 2:38 am
Contact:

Re: [RFC] Human Readable URLs

Post by Oleg »

ecwpa wrote:I think imkingdavid's point is that if you implement that kind of URLs by default (not a mod or extension) it would be half of the job already done, then if you really want to have SEO URLs you only have to apply mod_rewrite as you like.
How does mod_rewrite help with generating seo urls by phpbb?

Oleg
Posts: 1150
Joined: Tue Feb 23, 2010 2:38 am
Contact:

Re: [RFC] Human Readable URLs

Post by Oleg »

Sam wrote:

Code: Select all

/                                   Index
/forum-name-f12/                    Forum ID 12
/forum-name-f12/my-topic-t4/        Topic id 4
/forum-name-f12/post/               New topic in forum id 12'
/forum-name-f12/my-topic-t4/reply/  Reply in topic 4
/memberlist/                        Memberlist
/memberlist/leaders/                Leaders
/member/sam-m2/                     Member ID 2
/group/group-name-g4/               Group 4
/search/                            Just use REQUEST for the rest except for special case
/search/egosearch/                  Ego search
I do like all of these and I would support such an implementation.
Sam wrote:

Code: Select all

/ucp/{i}/                           Default GET params in the URL
/ucp/{i}/{mode}/                    
/mcp/{i}/                           Default GET params in the URL
/mcp/{i}/{mode}/
[/quote]
i should be changed to something textual, similarly to the other urls. This might require xcp modules to provide a slug.

Locked