[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
User avatar
NeoID
Registered User
Posts: 406
Joined: Mon Jun 06, 2005 10:12 pm
Location: Norway
Contact:

Post by NeoID »

mgutt wrote: I don't think so. Never heard about a problem with php5. :?

please, test again with the following code:

Code: Select all

<?php

$seo_title = "æ,ø,å or ae, oe, aaæ,ø,å or ae, oe, aaæ,ø,å or ae, oe, aa";

$seo_title = preg_replace('#[^\w- ]#', '', $seo_title);

echo($seo_title);

?>


Output: æøå or ae oe aaæøå or ae oe aaæøå or ae oe aa
(I'm currently testing it on another board)

Edit:
I've installed it on my live board. Now it works fine, however the æ,ø,å are missing (but the topic is linked):
http://www.animenord.com/forum/

http://www.animenord.com/forum/pent-forum-f9.html
should be:
http://www.animenord.com/forum/aapent-forum-f9.html :?
Norsk Anime Forum
http://www.AnimeNord.com
mgutt
Registered User
Posts: 346
Joined: Tue Sep 21, 2004 2:54 pm
Location: Germany, Sankt Augustin
Contact:

Post by mgutt »

So this was a local problem... Do you use at the live environment the same php version?

To rewrite the chars like you need them you can edit this lines:

Code: Select all

			// special chars
			$char_search = array(  'Ö', 'Ä', 'Ü', 'ö', 'ä','à','é','è','í','ó', 'ü', 'ß',' ','.',',','"','&','<', '>',  '+','–','/','_',  '&');
			$char_replace = array('oe','ae','ue','oe','ae','a','e','e','i','o','ue','ss','-','-','-',      '',  'und',    '',     '','und','-','-','-','und');
I think the procedure is easy to understand.
Forums: Honda || phpBB Categories Hierarchy
Mods: Spamfilter against bot registrations || Seo Urls
User avatar
NeoID
Registered User
Posts: 406
Joined: Mon Jun 06, 2005 10:12 pm
Location: Norway
Contact:

Post by NeoID »

mgutt wrote: So this was a local problem... Do you use at the live environment the same php version?.


No, now I'm using PHP 4. Great mod and thanks for your support!
Norsk Anime Forum
http://www.AnimeNord.com
User avatar
NeoID
Registered User
Posts: 406
Joined: Mon Jun 06, 2005 10:12 pm
Location: Norway
Contact:

Post by NeoID »

Sorry about double-posting, but I have a little question left. I'm using fetch all as my "CMS", but the URLs are now containg the caracter ',' something my users are complaining about. I've looked through the session.php but could't find the reason for this...any ideas?

Session.php: http://animenord.com/temp/session.txt
My page: http://animenord.com/
Without the seo-mod: http://www.phpbbfetchall.com/phpBB2/mod ... portal.php

(please look at the "recent topics list" and you'll see what I mean)

http://www.animenord.com/forum/viewtopi ... =xxxx#xxxx
becomes something like...:
http://animenord.com/forum/viewtopic,p,xxxx.html#xxxx

Thanks!
Norsk Anime Forum
http://www.AnimeNord.com
mgutt
Registered User
Posts: 346
Joined: Tue Sep 21, 2004 2:54 pm
Location: Germany, Sankt Augustin
Contact:

Post by mgutt »

neox3 wrote: but the URLs are now containg the caracter ',' something my users are complaining about


And where is the problem?
Forums: Honda || phpBB Categories Hierarchy
Mods: Spamfilter against bot registrations || Seo Urls
Disturbed One
Registered User
Posts: 129
Joined: Sun Apr 03, 2005 12:31 am

Post by Disturbed One »

mgutt wrote:
neox3 wrote:but the URLs are now containg the caracter ',' something my users are complaining about


And where is the problem?

Mine too.

http://www.v2.hvmdesign.com/portfolio,cat,1.html

Is

http://www.v2.hvmdesign.com/portfololio.php?cat=1

I do not want commas.
mgutt
Registered User
Posts: 346
Joined: Tue Sep 21, 2004 2:54 pm
Location: Germany, Sankt Augustin
Contact:

Post by mgutt »

lol

you don't get every time what you want ;)

Commas are the best chars for urls. This was tested many times by longtime tests in the past.

Only the hyphen (-) is similar to the comma, but the hyphen is used to divide the words in the seo titles. The comma is used to divide the variables and filenames.

If you can speak german you can read the longtime test here:
http://www.abakus-internet-marketing.de ... nterstrich

regards
Forums: Honda || phpBB Categories Hierarchy
Mods: Spamfilter against bot registrations || Seo Urls
dcz
Registered User
Posts: 787
Joined: Sun Feb 13, 2005 5:37 am
Contact:

Post by dcz »

I tend to dislike comas myself in URLs, but this is safe to use.

This mod is great, the only thing that could be discussed about the outputted standard here is the fact that URI will begin with variables and file names, then followed by keywords.

Since bots read from left to right, the other way around is a bit better IMHO.

Anyway, working on the new version of mx Google sitemaps, will have cache and css styling ;)

As said, I'll add the premodded files for this mod.

++

phpBB SEO || phpBB3 SEO Premod || SEO phpBB3
GYM Sitemaps & RSS for phpBB3: GYM Sitemaps & RSS
earpit
Registered User
Posts: 19
Joined: Fri Jun 23, 2006 11:48 am
Contact:

Post by earpit »

mgutt wrote: I think you have a compatibility issue regarding the archive.php mod. Please rename the .htaccess files that are used by other mods and merge them all in my .htaccess file. By the way, you have saved a wrong hyperlink to the archive.php.

regards


Brother, i am a real big noob :oops:

I would really appriciate if you do the modification,

here is my .htaccess file located in http://earpit.com/forums/

Code: Select all

RewriteEngine on
RewriteRule ^sitemap.xml$ sitemap.php [L]
RewriteRule ^forum-([0-9]+).xml$ sitemap.php?fid=$1 [L]

ErrorDocument 401 /errors.php?error=401
ErrorDocument 403 /errors.php?error=403
ErrorDocument 404 /errors.php?error=404
ErrorDocument 500 /errors.php?error=500


RewriteCond %{HTTP_HOST} ^forums.earpit.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.forums.earpit.com$
RewriteRule ^(.*)$ http://earpit.com/forums/index.php [R=301,L]

You please create a .htaccess file for the root and the mod lines installed.

Thank You
User avatar
littlepaws
Registered User
Posts: 353
Joined: Thu Mar 30, 2006 10:40 pm

what is the apache modul "mod_rewrite" to use this

Post by littlepaws »

what is the apache modul "mod_rewrite" to use this mod.
www.littlepawsdogtraining.com
website for dog lovers

www.tottenhamhotspursforum.co.uk
Football Fans forum

www.xbox360fanzone.com
Xbox 360 Forum
dcz
Registered User
Posts: 787
Joined: Sun Feb 13, 2005 5:37 am
Contact:

Post by dcz »

It's a server side Apache module : httpd.apache.org/docs/1.3/mod/mod_rewrite.html

It allow URL transformations.

It's a requirement for this mod.

++

phpBB SEO || phpBB3 SEO Premod || SEO phpBB3
GYM Sitemaps & RSS for phpBB3: GYM Sitemaps & RSS
mgutt
Registered User
Posts: 346
Joined: Tue Sep 21, 2004 2:54 pm
Location: Germany, Sankt Augustin
Contact:

Post by mgutt »

dcz wrote: This mod is great, the only thing that could be discussed about the outputted standard here is the fact that URI will begin with variables and file names, then followed by keywords.


Keywords are placed on the left by standard, then followed by variables. Not as you mentioned. Visit the demo board ;)
Forums: Honda || phpBB Categories Hierarchy
Mods: Spamfilter against bot registrations || Seo Urls
mgutt
Registered User
Posts: 346
Joined: Tue Sep 21, 2004 2:54 pm
Location: Germany, Sankt Augustin
Contact:

Post by mgutt »

earpit wrote:
mgutt wrote:I think you have a compatibility issue regarding the archive.php mod. Please rename the .htaccess files that are used by other mods and merge them all in my .htaccess file. By the way, you have saved a wrong hyperlink to the archive.php.

regards


Brother, i am a real big noob :oops:

I would really appriciate if you do the modification,

here is my .htaccess file located in http://earpit.com/forums/

Code: Select all

RewriteEngine on
RewriteRule ^sitemap.xml$ sitemap.php [L]
RewriteRule ^forum-([0-9]+).xml$ sitemap.php?fid=$1 [L]

ErrorDocument 401 /errors.php?error=401
ErrorDocument 403 /errors.php?error=403
ErrorDocument 404 /errors.php?error=404
ErrorDocument 500 /errors.php?error=500


RewriteCond %{HTTP_HOST} ^forums.earpit.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.forums.earpit.com$
RewriteRule ^(.*)$ http://earpit.com/forums/index.php [R=301,L]

You please create a .htaccess file for the root and the mod lines installed.

Thank You


Paste my .htaccess code at the end of your .htaccess without the line "RewriteEngine on" (to avoid doubles). But before remove the "phpBB Search Engine Indexer" Mod.

EDIT:

New Addons:

Code: Select all

##
##
##############################################################
## 5. Redirect url if it is not similar to topic title in viewtopic
##
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
if ($post_id)
{
	$start = floor(($forum_topic_data['prev_posts'] - 1) / intval($board_config['posts_per_page'])) * intval($board_config['posts_per_page']);
}
#
#-----[ AFTER, ADD ]------------------------------------------
#

//-- mod : avoid double content urls -------------------------------------------
//-- add
if ( !$post_id && strpos($_SERVER['REQUEST_URI'], '.html') !== false )
{
	$requested_url = substr(strrchr($_SERVER['REQUEST_URI'], "/"), 1);
	$needed_url = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&start=$start", '', $topic_title);
	if ( !empty($requested_url) )
	{
		if ( $requested_url != $needed_url )
		{
			redirect($needed_url);
		}
	}
}
//-- fin mod : avoid double content urls ---------------------------------------
#
##
##
##############################################################
## 6. Redirect url if it is not similar to forum name in viewforum
##
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
viewforum.php
#
#-----[ FIND ]------------------------------------------
#
//
// End of auth check
//
#
#-----[ AFTER, ADD ]------------------------------------------
#

//-- mod : avoid double content urls -------------------------------------------
//-- add
if ( strpos($_SERVER['REQUEST_URI'], '.html') !== false )
{
	$requested_url = substr(strrchr($_SERVER['REQUEST_URI'], "/"), 1);
	$needed_url = append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id&start=$start", '', $forum_row['forum_name']);
	if ( !empty($requested_url) )
	{
		if ( $requested_url != $needed_url )
		{
			redirect($needed_url);
		}
	}
}
//-- fin mod : avoid double content urls ---------------------------------------
Forums: Honda || phpBB Categories Hierarchy
Mods: Spamfilter against bot registrations || Seo Urls
dcz
Registered User
Posts: 787
Joined: Sun Feb 13, 2005 5:37 am
Contact:

Post by dcz »

mgutt wrote:
dcz wrote:This mod is great, the only thing that could be discussed about the outputted standard here is the fact that URI will begin with variables and file names, then followed by keywords.


Keywords are placed on the left by standard, then followed by variables. Not as you mentioned. Visit the demo board ;)


You are right sorry ;)

It was the "start" var I disliked a bit, but not that much of a big deal :D

++

phpBB SEO || phpBB3 SEO Premod || SEO phpBB3
GYM Sitemaps & RSS for phpBB3: GYM Sitemaps & RSS
mgutt
Registered User
Posts: 346
Joined: Tue Sep 21, 2004 2:54 pm
Location: Germany, Sankt Augustin
Contact:

Post by mgutt »

The Addons 5 and 6 were temporarily removed from the download package. They are buggy regarding the sort feature of topics and/or posts.
Forums: Honda || phpBB Categories Hierarchy
Mods: Spamfilter against bot registrations || Seo Urls
Post Reply

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