Page 1 of 31

[MODDB] Search Engine Friendly (SEO) URLs 1.0.0

Posted: Tue May 22, 2007 3:58 am
by Handyman`
Classification: Mod
phpBB Part: Forum
MOD Name: Search Engine Friendly (SEO) URLs
MOD Version: 1.0.0 RC4
Author: Handyman
MOD Description: This mod changes viewforum and viewtopic links to be SEO Friendly

Works with:
  • phpBB 3.0.0 RC7
  • All styles
Language: English

Licence: GNU General Public License v2

Installation Level: Intermediate
Installation Time: ~15 Minutes
Format: MODX
Download File: http://startrekguide.bountysource.com/downloads
Bug Tracker: http://startrekguide.bountysource.com/development

Demo: http://startrekguide.com browse around to see it all. (Demo is not running RC4)

Do not post bug reports in this topic. Link for bug reports is posted right above the demo link

If you like my mods, please donate to StarTrekGuide

Note: Your server must be able to support mod_rewrite.
To test, do the first part of the installation only (.htaccess)
and put in a url like this -> forum/test-t1.html
if it shows topic does not exist or shows the topic, then you may continue installing this mod.
If it doesn't work, you will have to setup your apache to work with mod_rewrite before installing this mod

What's new in this version:
  1. URLs now look like this : forum/myforum-f1.html forum/search-engine-friendly-topic-t1.html
  2. Older format urls now have a 301 redirect to preserve any previous pagerank.
  3. Now uses MOD Version Check
Note: even though it has been requested many times to remove accented characters, it causes problems for other languages, so it has been removed in this version… also new browsers (Safari Windows/Mac) are starting to support UTF-8 characters, so might as well stay on the cutting edge.

My Mod Roadmap: http://startrekguide.com/forum/f100-mod ... html#p8507

to upgrade from RC1-RC3 to RC4
OPEN viewforum.php
FIND

Code: Select all

'U_LAST_POST'            => $view_topic_url . '&p=' . $row['topic_last_post_id'] . '#p' . $row['topic_last_post_id'],  
REPLACE WITH

Code: Select all

'U_LAST_POST'            => format_url($row['topic_title'], 'p' . $row['topic_last_post_id']),  
And copy over the files from the zip replacing the old ones.

Make sure to download MOD Version Check so you will be able to see when an update is available.

Re: [BETA] Search Engine Friendly (SEO) URLs

Posted: Thu May 24, 2007 11:19 am
by snider
I would be interested in the updated version, let me know !!

Re: [BETA] Search Engine Friendly (SEO) URLs

Posted: Thu May 24, 2007 10:48 pm
by Handyman`
ugh! it's driving me nuts… I have it ready to go, I just need to install it and do a little more testing and package it… just takes more time than I've had available the last week :|

Re: [BETA] Search Engine Friendly (SEO) URLs

Posted: Fri May 25, 2007 12:40 am
by ac_roma
its great

thanks :)

Re: [BETA] Search Engine Friendly (SEO) URLs

Posted: Sat May 26, 2007 12:56 pm
by Afrael
Hi. :)
I have a problem with this mod. :) When I'm installing it I can't find this line:

Code: Select all

$subforums_list .= '<a href="' . append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $subforum_id) . '">' . $subforum_row['name'] . '</a>';
in includes/functions_display.php
Is everything ok or it's my fault?
Greetings.

Re: [BETA] Search Engine Friendly (SEO) URLs

Posted: Sat May 26, 2007 9:10 pm
by Handyman`
hmm… seems I missed that part on my updated.
It's fixed in my latest version though… but I haven't had time to package it since I've had so much immediate demand for 2 other mods in development.

So here is the fix for that line:
FIND

Code: Select all

'link'        => append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $subforum_id),  
REPLACE WITH

Code: Select all

'link'        => append_seo_sid("{$phpbb_root_path}f{$subforum_id}" . format_url($subforum_row['name'])),  

Re: [BETA] Search Engine Friendly (SEO) URLs

Posted: Sat May 26, 2007 10:32 pm
by Afrael
Big thanks for you. :) I'm going to testing it. :)
Greetings.

Edit.
mod_rewrite is ok but when i try to "click" on any link I have 404. :(

Re: [BETA] Search Engine Friendly (SEO) URLs

Posted: Sun May 27, 2007 12:27 am
by Handyman`
Afrael wrote:Big thanks for you. :) I'm going to testing it. :)
Greetings.

Edit.
mod_rewrite is ok but when i try to "click" on any link I have 404. :(
what do your links look like? can you post one here?

Re: [BETA] Search Engine Friendly (SEO) URLs

Posted: Mon May 28, 2007 8:37 am
by Afrael
yes, of course, one link look like:

Code: Select all

http://localhost/~for/f2-test_forum_1.html
Greetings.

Re: [BETA] Search Engine Friendly (SEO) URLs

Posted: Mon May 28, 2007 2:23 pm
by SNNteh1st
Does anyone have a .htaccess made for lighttpd for this MOD?

Thanks,
SNN

Re: [BETA] Search Engine Friendly (SEO) URLs

Posted: Mon May 28, 2007 5:13 pm
by dcz
Interesting.

That's funny we both choose the same name for the format_url() function, I see webmedic did inspire some of us :D

keep up the good work!

Re: [BETA] Search Engine Friendly (SEO) URLs

Posted: Mon May 28, 2007 7:23 pm
by Handyman`
format_url? I didn't know somebody was using that already :lol:

Re: [BETA] Search Engine Friendly (SEO) URLs

Posted: Mon May 28, 2007 9:23 pm
by dcz
No kidding :lol:
The funniest thing is I always wondered myself why I named my own version of the function this way, since it's more about title formatting than URL itself, but now, I'm convinced I did right, two brain cannot be wrong :mrgreen:

++

Re: [BETA] Search Engine Friendly (SEO) URLs

Posted: Mon May 28, 2007 9:26 pm
by ac_roma
ok dcz please realease your mod and dont forget thr simple :D

Re: [BETA] Search Engine Friendly (SEO) URLs

Posted: Tue May 29, 2007 3:06 pm
by Afrael
Does somebody know how I can install this mod? :) It can by my apache fault? (I use a pack: http://www.WebServ.pl).