[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.
User avatar
tas2580
Registered User
Posts: 295
Joined: Wed May 30, 2007 1:56 am
Location: Stuttgart, Germany

[ABD] URL Rewriting (SEO URLs)

Post by tas2580 »

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.

Re: [DEV] SEO URLs

Post by advocatus »

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

Re: [DEV] SEO URLs

Post by tas2580 »

/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* »

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

Re: [DEV] SEO URLs

Post by tas2580 »

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: 2395
Joined: Mon Jul 26, 2010 10:58 pm
Location: Guatemala
Name: Melvin García

Re: [DEV] SEO URLs

Post by nextgen »

Bookmarked for this extension. :)
メルビン・ガルシア • nextgen SolutionsDDAnimeXenForo Hispano

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

Re: [DEV] SEO URLs

Post by tas2580 »

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: 302
Joined: Thu Aug 20, 2009 3:54 pm
Name: Chris C.

Re: [DEV] SEO URLs

Post by Sshadow »

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?
Chris/Admin
brunoais
Registered User
Posts: 447
Joined: Wed Jun 18, 2008 10:50 am

Re: [DEV] SEO URLs

Post by brunoais »

Question:
How is a link written like that better with search engines?
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: [DEV] SEO URLs

Post by david63 »

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!

I now no longer support any of my extensions but they will start to become available here
brunoais
Registered User
Posts: 447
Joined: Wed Jun 18, 2008 10:50 am

Re: [DEV] SEO URLs

Post by brunoais »

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: 250
Joined: Tue Dec 10, 2002 2:04 pm
Location: France
Name: Gilles W.

Re: [DEV] SEO URLs

Post by draky »

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 »

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: 250
Joined: Tue Dec 10, 2002 2:04 pm
Location: France
Name: Gilles W.

Re: [DEV] SEO URLs

Post by draky »

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: 6792
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James

Re: [DEV] SEO URLs

Post by HiFiKabin »

^^ likewise here.

I've removed it

Return to “Abandoned Extensions”