[BETA] SEO Urls V2

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Post Reply
mgutt
Registered User
Posts: 346
Joined: Tue Sep 21, 2004 2:54 pm
Location: Germany, Sankt Augustin
Contact:

[BETA] SEO Urls V2

Post by mgutt » Sun Jul 02, 2006 12:07 pm

I started a new version of seo urls.

The titels of the topics and forums are displayed inside the url and this is done without any database queries. (=fast)

f.e. to reach this topic you follow this url:
http://www.phpbb.com/phpBB/viewtopic.php?t=407141

After you installed my mod it is reached by:


You need the apache modul "mod_rewrite" to use this mod.

The demo board is available here: www.evop.de (please use the "cafe" for testing)

Download

Add Ons

- Avoid double content:
Many pages in your forums are reachable with serveral urls. f.e. a topic could be reached with ca. 20 different urls. And they all display the same content. This doubling of pages are rated by search engines as spam.

You find this addon in "addons/avoid_double_content.txt".

- Replace old Short Urls to the new Seo Urls (f.e. if you ran larsneo's short url mod before)
Use the forward.php and follow the steps in the readme.txt.

FAQ:
Will it work with phpBB3 (Olympus)?
- Not at the moment, but I will update my mod if phpBB3 is released.

After I visit my forum at the first time it won't rewrite the urls. Is this a bug?
- No. This is a feature not a bug ;) The mod won't rewrite if the url contains a session. The session is generated if you have cookies enabled and/or stay active in autologin. If you disable the cookies and if you are logged out you see the rewritten urls since the first page. As a bot can't receive cookies he will crawl the page with the rewritten and correct urls.
Last edited by mgutt on Wed Jul 05, 2006 10:43 am, edited 2 times in total.
Forums: Honda || phpBB Categories Hierarchy
Mods: Spamfilter against bot registrations || Seo Urls

de$ert
Registered User
Posts: 57
Joined: Fri Mar 17, 2006 10:56 pm
Contact:

Post by de$ert » Sun Jul 02, 2006 1:47 pm

Perfekt working seo modifikation! Nice One :)

mgutt
Registered User
Posts: 346
Joined: Tue Sep 21, 2004 2:54 pm
Location: Germany, Sankt Augustin
Contact:

Post by mgutt » Mon Jul 03, 2006 9:07 am

new version 1.2.3 is out. It is a minor bugfix added for false written mods that caused incompatibility.

Please overwrite only the function "append_sid()" in the sessions.php (you see the beginning and the end of the mod in the code)

In the avoid_double_content addons you find three new addons regarding the index.php and the search.php.
Forums: Honda || phpBB Categories Hierarchy
Mods: Spamfilter against bot registrations || Seo Urls

Luchtzak
Registered User
Posts: 225
Joined: Sat Jul 20, 2002 7:13 pm
Contact:

Post by Luchtzak » Mon Jul 03, 2006 1:33 pm

Mgutt,

very cool mod, got it working for my www.snookerforum.be

for my other forum www.luchtzak.be/forums however I can't seem to get the .htaccess file right

- where do I have to put the .htaccess file? root or folder forums
- what in the .htaccess file do I need to change to

thanks for the help,

Bart

mgutt
Registered User
Posts: 346
Joined: Tue Sep 21, 2004 2:54 pm
Location: Germany, Sankt Augustin
Contact:

Post by mgutt » Mon Jul 03, 2006 2:08 pm

you have to copy the files "robots.txt" and ".htaccess" of the "phpbb_in_folder" package into the root of your domain like that:
mydomain.com/robots.txt
mydomain.com/.htaccess

In both files you must search and replace all "phpBB2" with your "forums".
Forums: Honda || phpBB Categories Hierarchy
Mods: Spamfilter against bot registrations || Seo Urls

Luchtzak
Registered User
Posts: 225
Joined: Sat Jul 20, 2002 7:13 pm
Contact:

Post by Luchtzak » Mon Jul 03, 2006 3:16 pm

mgutt wrote: In both files you must search and replace all "phpBB2" with your "forums".


But when I open the .htaccess I get this:
<Files config.php>
Deny from all
</Files>

DirectoryIndex index.php index.html index.html

RewriteEngine On

# SEO URL [mgutt]
RewriteRule !\.html$ - [L]
RewriteRule ^forum/[a-z0-9-]+-([pt])([0-9]+)\.html$ /forum/viewtopic.php?$1=$2 [L]
RewriteRule ^forum/[a-z0-9-]+-f([0-9]+)\.html$ /forum/viewforum.php?f=$1 [L]
RewriteRule ^forum/[a-z0-9-]+-u([0-9]+)\.html$ /forum/profile.php?mode=viewprofile&u=$1 [L]
RewriteRule ^forum/([a-zA-Z0-9_]+),([^/,]+),([^/,]*)([^/]*\.html)$ forum/$1$4?$2=$3 [QSA,N]
RewriteRule ^forum/[a-z0-9-]+-([pt])([0-9]+),([^/,]+),([^/,]*)([^/]*\.html)$ forum/viewtopic$5?$1=$2&$3=$4 [QSA,N]
RewriteRule ^forum/[a-z0-9-]+-f([0-9]+),([^/,]+),([^/,]*)([^/]*\.html)$ forum/viewforum$4?f=$1&$2=$3 [QSA,N]
RewriteRule ^forum/([a-zA-Z0-9_]+)\.html$ /$1.php [L]


so it's the word forum that I need to replace ?

mgutt
Registered User
Posts: 346
Joined: Tue Sep 21, 2004 2:54 pm
Location: Germany, Sankt Augustin
Contact:

Post by mgutt » Mon Jul 03, 2006 4:12 pm

yes.. sorry i've made a mistake :oops:

please replace the "forum" with "forums". (hint: don't do it with the word "viewforum" ;) ) (please download the right .htaccess of the updated package. I changed the last line)

regards

EDIT: Updated the Download :)
Last edited by mgutt on Mon Jul 03, 2006 10:23 pm, edited 1 time in total.
Forums: Honda || phpBB Categories Hierarchy
Mods: Spamfilter against bot registrations || Seo Urls

Colin
Registered User
Posts: 50
Joined: Sat Dec 22, 2001 12:36 am
Contact:

Post by Colin » Mon Jul 03, 2006 7:07 pm

nice mod..
I'm getting a 404 error when using the sub_folder one. My URL is http://gmperformance.org/hbody

I did make the changes in the .htaccess file per instructions and rechecked my installation for any typos or mistakes. It seems to be correct.

Can you advise?
Thanks,
Colin
Forum Admin: forums.H-Body.org

comuter
Registered User
Posts: 158
Joined: Mon Jan 16, 2006 2:08 pm

Post by comuter » Mon Jul 03, 2006 10:10 pm

mirror

Code: Select all

http://www.darkshare.com/v/7389116/mod_seo_urls_v2.zip.html
I have seen good mods like this pass by with dead links

mgutt
Registered User
Posts: 346
Joined: Tue Sep 21, 2004 2:54 pm
Location: Germany, Sankt Augustin
Contact:

Post by mgutt » Mon Jul 03, 2006 10:12 pm

Colin wrote: nice mod..
I'm getting a 404 error when using the sub_folder one. My URL is http://gmperformance.org/hbody

I did make the changes in the .htaccess file per instructions and rechecked my installation for any typos or mistakes. It seems to be correct.

Can you advise?
Thanks,
Colin


I had a typo in the code. Look at the last line in .htaccess.

In your way it must look like this:

Code: Select all

RewriteRule ^hbody/([a-zA-Z0-9_]+)\.html$ /hbody/$1.php [L]
*Download package was updated*
comuter wrote: mirror

Code: Select all

http://www.darkshare.com/v/7389116/mod_seo_urls_v2.zip.html
I have seen good mods like this pass by with dead links


If you are fast enough in updating the packages that is no problem for me ;)

In a few days I will ask for Validation of this mod at phpbb.com, so it will never go offline ;)
Forums: Honda || phpBB Categories Hierarchy
Mods: Spamfilter against bot registrations || Seo Urls

Luchtzak
Registered User
Posts: 225
Joined: Sat Jul 20, 2002 7:13 pm
Contact:

Post by Luchtzak » Wed Jul 05, 2006 10:09 am

Got it working perfect! Thanks a million! I hope you make a release for olympus too! :wink:

mgutt
Registered User
Posts: 346
Joined: Tue Sep 21, 2004 2:54 pm
Location: Germany, Sankt Augustin
Contact:

Post by mgutt » Wed Jul 05, 2006 10:33 am

Luchtzak wrote: Got it working perfect! Thanks a million! I hope you make a release for olympus too! :wink:


Read the FAQ... i will ;)
Forums: Honda || phpBB Categories Hierarchy
Mods: Spamfilter against bot registrations || Seo Urls

User avatar
yakusha
Registered User
Posts: 71
Joined: Mon Apr 03, 2006 8:30 pm

Post by yakusha » Wed Jul 05, 2006 10:50 pm

eng: thanks - tr: teşekkürler - ar: shukrân kesîran

mgutt
Registered User
Posts: 346
Joined: Tue Sep 21, 2004 2:54 pm
Location: Germany, Sankt Augustin
Contact:

Post by mgutt » Thu Jul 06, 2006 1:51 pm

A little Update to Version 1.2.4:

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#
includes/functions.php
#
#-----[ FIND ]------------------------------------------
#
							'url' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=" . $forum_rows[$j]['forum_id'], '', $forum_rows[$j]['forum_name']),
#
#-----[ REPLACE WITH ]------------------------------------------
#
							'url' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=" . $forum_rows[$j]['forum_id']),
#
#
#-----[ OPEN ]------------------------------------------
#
This is for some browser who use the sitemap function of HTML Meta Tags (link rel=).

Searchphrases: SEO, mod, able2know, dynamic, URL's, Static, increase, page, rank, pagerank, inclusion, rates, search, engines, larger, board, urls, engine, modrewrite, mod, rewrite, apache, sid, session, html, htm, 2lucky, rabbit, short, shorturls, shorturl, seourl, seourls, phpBB, Search, Engine, Indexer, bot, GoogleBB, Link, Enhancement, Surprise, engine-friendly, indexing, Friendliness, Remove, Guest, ID's, SIDs, keyword, title, RewriteEngine, RewriteRule, spider, crawl, crawler, archiv, archive, phprebel
Last edited by mgutt on Tue Aug 01, 2006 8:57 pm, edited 5 times in total.
Forums: Honda || phpBB Categories Hierarchy
Mods: Spamfilter against bot registrations || Seo Urls

gigli
Registered User
Posts: 4
Joined: Sun Jul 10, 2005 11:04 pm

Post by gigli » Thu Jul 06, 2006 4:27 pm

Hi All! ))
I have 2 problems with avoid_double_content addon

1. In archive of a forum there is no file:
#
#-----[ OPEN ]------------------------------------------
#
constants.php

May be includes/constants.php :?: ;)

2. Search gives out a error if "Display results as: Topics"
Could not obtain the number of previous posts

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 4

SELECT COUNT(p.post_id) AS prev_posts FROM phpbb_posts p WHERE p.topic_id = 3838 AND p.post_id <=

Line : 881
File : search.php


My server conf.:
Apache 1.3.31
PHP 4.3.10
MySQL 4.0.24

Regards!

Post Reply

Return to “[2.0.x] MODs in Development”

Who is online

Users browsing this forum: No registered users and 3 guests

cron