[ABD] URL Rewriting (SEO URLs)

Any abandoned Extensions will be moved to this forum.

WARNING: Extensions in this forum are not currently being supported or maintained by the original Extension author. Proceed at your own risk.
Forum rules
IMPORTANT: Extension Development Forum rules

WARNING: Extensions in this forum are not currently being supported nor updated by the original Extension author. Proceed at your own risk.
Locked
User avatar
tas2580
Registered User
Posts: 295
Joined: Wed May 30, 2007 1:56 am
Location: Stuttgart, Germany
Contact:

[ABD] URL Rewriting (SEO URLs)

Post by tas2580 » Wed Jan 14, 2015 1:00 am

Image

Extension Name: SEO URLs
Author: tas2580

Extension Description:
Changes the URLs of forums and topics too more SEO friendly URLs with the title of the forums and topics in it. This extension is held as simple as possible, it contains no ACP, you can just install it and use the SEO friendly URLs.

/viewforum.php?f=1 becomes /forum-title-f1/
/viewtopic.php?f=1&t=2 becomes /forum-title-f1/topic-title-t2.html

Extension Version: 0.3.3

Extension Demo: https://phpbb.tas2580.net/

Extension Download: https://tas2580.net/downloads/phpbb-seo-url/

Github Repository: https://github.com/tas2580/seourls

Image
Last edited by tas2580 on Sun Jan 08, 2017 7:34 pm, edited 13 times in total.

User avatar
advocatus
Registered User
Posts: 290
Joined: Tue Aug 12, 2014 11:58 am
Location: Ontario, Canada.
Contact:

Re: [DEV] SEO URLs

Post by advocatus » Wed Jan 14, 2015 1:25 am

So, for example it would be from:

/forum/viewtopic.php?f=X&t=Y

to

/forum/General-Discussion/Look-at-topic-titles

Right?
Hi, I'm advocatus and I own www.forumgames.in.

User avatar
tas2580
Registered User
Posts: 295
Joined: Wed May 30, 2007 1:56 am
Location: Stuttgart, Germany
Contact:

Re: [DEV] SEO URLs

Post by tas2580 » Wed Jan 14, 2015 1:30 am

/forum/viewtopic.php?f=1&t=2

will be

/forum/general-discussion-f1/look-at-topic-titles-t2.html

We need the Ids in the URL to get the correct forum/topic. Its possible that you have two forums or topics with the same title. Also the titles will be written lower and special characters will be replaced.

Dannie*
Registered User
Posts: 87
Joined: Sun Nov 30, 2014 11:46 pm

Re: [DEV] SEO URLs

Post by Dannie* » Wed Jan 14, 2015 1:37 am

Some feature for change the profiles URLs too?

User avatar
tas2580
Registered User
Posts: 295
Joined: Wed May 30, 2007 1:56 am
Location: Stuttgart, Germany
Contact:

Re: [DEV] SEO URLs

Post by tas2580 » Wed Jan 14, 2015 2:01 am

Not at the moment, I want to concentrate me to the forums and topics first. Maybe later, but I don't think that its a good idea to make profiles access able for search engines because they contain no content and I think it's better for the privacy of the users if there profiles are not in the search engines.

User avatar
nextgen
Registered User
Posts: 2271
Joined: Mon Jul 26, 2010 10:58 pm
Location: Guatemala
Name: Melvin García
Contact:

Re: [DEV] SEO URLs

Post by nextgen » Wed Jan 14, 2015 3:56 am

Bookmarked for this extension. :)
メルビン・ガルシア • XeronixMy active styles for phpBBphpBB Argentina - Soporte en español🇦🇷

Please do NOT contact for support via PM or email.

User avatar
tas2580
Registered User
Posts: 295
Joined: Wed May 30, 2007 1:56 am
Location: Stuttgart, Germany
Contact:

Re: [DEV] SEO URLs

Post by tas2580 » Wed Jan 14, 2015 5:02 am

OK, I have looked at the profile links, by default profiles are linked and if a not logged in user clicks on it he will get the login box. I have now removed the links for not logged in users so that they will see only the users names without links.

So I don't need to rewirte the profiles URLs because it makes no sense to rewrite URLs which are not visible for search engines/guests.

User avatar
Sshadow
Registered User
Posts: 299
Joined: Thu Aug 20, 2009 3:54 pm
Name: Chris C.
Contact:

Re: [DEV] SEO URLs

Post by Sshadow » Wed Jan 14, 2015 6:09 am

Will the forum be able to translate the old URLs? Meaning if I have links out there to the current URLs and install this they will still work?

User avatar
brunoais
QA Team
Posts: 379
Joined: Wed Jun 18, 2008 10:50 am

Re: [DEV] SEO URLs

Post by brunoais » Wed Jan 14, 2015 9:33 am

Question:
How is a link written like that better with search engines?

User avatar
david63
Jr. Extension Validator
Posts: 13187
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: [DEV] SEO URLs

Post by david63 » Wed Jan 14, 2015 9:37 am

tas2580 wrote:will be

/forum/general-discussion-f1/look-at-topic-titles-t2.html
And what happens if the forum and/or topic titles are changed?
brunoais wrote:Question:
How is a link written like that better with search engines?
My thoughts as well. Search engines do not seem to have a problem at the moment.
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
brunoais
QA Team
Posts: 379
Joined: Wed Jun 18, 2008 10:50 am

Re: [DEV] SEO URLs

Post by brunoais » Wed Jan 14, 2015 9:43 am

david63 wrote:
tas2580 wrote:will be

/forum/general-discussion-f1/look-at-topic-titles-t2.html
And what happens if the forum and/or topic titles are changed?
My own guess is that it doesn't care. It only cares about the last one of the "-" separated tokens before the "/".
In that case:
"f1" & "t2".
The rest is ignored and can be any valid URL gibberish (ofc, it can't be the "/")

EDIT:
Personally, I don't like it ending with ".html". Feels like a trying to lie to whoever is reading the URL to believe it is a static page, which is wrong.

User avatar
draky
Registered User
Posts: 245
Joined: Tue Dec 10, 2002 2:04 pm
Location: France
Name: Gilles W.
Contact:

Re: [DEV] SEO URLs

Post by draky » Wed Jan 14, 2015 10:20 am

Does it replaces .htaccess rules ?

Same questions as above :
- what about removing .html ?
- what if original title is changed ?

Nice extension :)

User avatar
Louis7777
Registered User
Posts: 247
Joined: Sat Apr 21, 2012 9:22 pm

Re: [DEV] SEO URLs

Post by Louis7777 » Wed Jan 14, 2015 10:24 am

tas2580 wrote: /viewtopic.php?f=1&t=2 becomes /forum-title-f1/topic-title-t2.html
You can also make it just /topic-title-t2.html as /viewtopic.php?t=2 works as well, without the f.

User avatar
draky
Registered User
Posts: 245
Joined: Tue Dec 10, 2002 2:04 pm
Location: France
Name: Gilles W.
Contact:

Re: [DEV] SEO URLs

Post by draky » Wed Jan 14, 2015 10:35 am

Error when clicking on a subforum (which is clickable in the main index) :

Code: Select all

Informations

No route found for "GET /poubelle-f5/"
The subforum is "f5" and name is "poubelle" ;)

When click first on parent to enter it then on the subforum : same problem : GET /xxxxx/

And click to ADMIN = 404 :evil:

EDIT : repaired : disabled it anyway as not workign, some ADMIN link are 404 (the one at the bottom of forum)

User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 2306
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Re: [DEV] SEO URLs

Post by HiFiKabin » Wed Jan 14, 2015 11:06 am

^^ likewise here.

I've removed it

Locked

Return to “Abandoned Extensions”

Who is online

Users browsing this forum: No registered users and 5 guests