Page 23 of 24

Re: [BETA] SEO Urls V2

Posted: Thu May 31, 2007 10:06 pm
by cobby
Hi I have a very odd problem with this...

the urls are rewriting but its all kicking back to the main page?

Click on the link

this is whats in the htaccess currently

Code: Select all

# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
order deny,allow
deny from all
AuthUserFile /home/caninepa/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/caninepa/public_html/_vti_pvt/service.grp
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress

<Files config.php> 
Deny from all 

DirectoryIndex index.php index.html index.htm

RewriteEngine On
RewriteBase   /forum/

# SEO URL [mgutt]
RewriteRule !\.html$ - [L]
RewriteRule ^[a-z0-9-]+-([pt])([0-9]+)\.html$ viewtopic.php?$1=$2 [L]
RewriteRule ^[a-z0-9-]+-f([0-9]+)\.html$ viewforum.php?f=$1 [L]
RewriteRule ^[a-z0-9-]+-c([0-9]+)\.html$ index.php?c=$1 [L]
RewriteRule ^[a-z0-9-]+-u([0-9]+)\.html$ profile.php?mode=viewprofile&u=$1 [L]
RewriteRule ^([a-zA-Z0-9_]+),([^/,]+),([^/,]*)([^/]*\.html)$ $1$4?$2=$3 [QSA,N]
RewriteRule ^[a-z0-9-]+-([pt])([0-9]+),([^/,]+),([^/,]*)([^/]*\.html)$ viewtopic$5?$1=$2&$3=$4 [QSA,N]
RewriteRule ^[a-z0-9-]+-f([0-9]+),([^/,]+),([^/,]*)([^/]*\.html)$ viewforum$4?f=$1&$2=$3 [QSA,N]
RewriteRule ^([a-zA-Z0-9_]+)\.html$ $1.php [L]
Can anyone look at this and tell me where to go?

Re: [BETA] SEO Urls V2

Posted: Thu Jun 07, 2007 2:58 pm
by lesmith
I have tried to install V2 with the latest phpbb stable release but I am getting error 404 pages.

I know seo works as I have other files with seo working.

My site is installed in a folder /forums/ and this is my .htaccess

Code: Select all

<Files config.php> 
Deny from all 
RewriteEngine On

DirectoryIndex index.php index.html index.htm

# SEO URL [mgutt]
RewriteRule !\.html$ - [L]
RewriteRule ^forums/[a-z0-9-]+-([pt])([0-9]+)\.html$ /forums/viewtopic.php?$1=$2 [L]
RewriteRule ^forums/[a-z0-9-]+-f([0-9]+)\.html$ /forums/viewforum.php?f=$1 [L]
RewriteRule ^forums/[a-z0-9-]+-c([0-9]+)\.html$ /forums/index.php?c=$1 [L]
RewriteRule ^forums/[a-z0-9-]+-u([0-9]+)\.html$ /forums/profile.php?mode=viewprofile&u=$1 [L]
RewriteRule ^forums/([a-zA-Z0-9_]+),([^/,]+),([^/,]*)([^/]*\.html)$ forums/$1$4?$2=$3 [QSA,N]
RewriteRule ^forums/[a-z0-9-]+-([pt])([0-9]+),([^/,]+),([^/,]*)([^/]*\.html)$ forums/viewtopic$5?$1=$2&$3=$4 [QSA,N]
RewriteRule ^forums/[a-z0-9-]+-f([0-9]+),([^/,]+),([^/,]*)([^/]*\.html)$ forums/viewforum$4?f=$1&$2=$3 [QSA,N]
RewriteRule ^forums/([a-zA-Z0-9_]+)\.html$ /forums/$1.php [L]
I have done all what has been asked in the seo_url_v2.txt .

Any suggestions ?

I have good SEO URLs now ie. ... ns-c1.html

Also I may be thick but there is another folder called addons. I have not done anything from this folder. ?? Is this correct.

Hope you can advice.

Thank you in advance.

Re: [BETA] SEO Urls V2

Posted: Sun Jun 24, 2007 6:25 pm
by ToXiQ
I tryed this one at a test database but with some problems till now.

I first tryed to test if mod_rewrite was functional!

I made a test map


put in ther 2 files

alice.html with followin content:

Code: Select all

      <title>Alice's webpage</title>
         This is Alice's webpage
and bob.html

Code: Select all

      <title>bob webpage</title>
         This is bob webpage
Then I placed a .htaccess in the folder test with following:

Code: Select all

RewriteEngine on
RewriteRule ^alice.html$ bob.html
When I load alice.html I see the content from the bob page.

So it looks like mod_rewrite is working!

I modiefied all files needed for SEO V2 adn then the strugle begins :(

I have 2 .htaccess files one for /root and one for folder!

Do I need them both? My forum is in map /test and I changed in the folder version everything from phpBB into test!

Code: Select all

<Files config.php> 
Deny from all 

DirectoryIndex index.php index.html index.htm

RewriteEngine On

# SEO URL [mgutt]
RewriteRule !\.html$ - [L]
RewriteRule ^test/[a-z0-9-]+-([pt])([0-9]+)\.html$ /test/viewtopic.php?$1=$2 [L]
RewriteRule ^test/[a-z0-9-]+-f([0-9]+)\.html$ /test/viewforum.php?f=$1 [L]
RewriteRule ^test/[a-z0-9-]+-c([0-9]+)\.html$ /test/index.php?c=$1 [L]
RewriteRule ^test/[a-z0-9-]+-u([0-9]+)\.html$ /test/profile.php?mode=viewprofile&u=$1 [L]
RewriteRule ^test/([a-zA-Z0-9_]+),([^/,]+),([^/,]*)([^/]*\.html)$ test/$1$4?$2=$3 [QSA,N]
RewriteRule ^test/[a-z0-9-]+-([pt])([0-9]+),([^/,]+),([^/,]*)([^/]*\.html)$ test/viewtopic$5?$1=$2&$3=$4 [QSA,N]
RewriteRule ^test/[a-z0-9-]+-f([0-9]+),([^/,]+),([^/,]*)([^/]*\.html)$ test/viewforum$4?f=$1&$2=$3 [QSA,N]
RewriteRule ^test/([a-zA-Z0-9_]+)\.html$ /test/$1.php [L]
now when I go to my forum I see when I click at faq it is trying to load faq.html and I get a HTTP-fout 404 file not found error? regards less if I am logged in or not!

when I look into my error logs I see the following:

Code: Select all - - [24/Jun/2007:20:20:38 +0200] [localhost/sid#9c63e40][rid#9e15328/initial] (1) [per-dir /home/localhost/-test/] pass through /home/localhost/test/faq.html
it looks like that the html is not redirected to the php part?

I readed whole thread now and couldn't find something I did wrong (I did but what ;) )

I also have smartors album operational and all photo's are broken?

Hope somebody can help me with this.

regards Walter

Re: [BETA] SEO Urls V2

Posted: Mon Jul 02, 2007 5:49 pm
by hinksta
I have installed rss_mod_1.0.4 and i'm a bit confused about moding it for SEO Urls.

The only part I can find that looks similar to POST_FORUM_URL is below but I don't know how to mod it.

Code: Select all

// Get Various vars
Hope you can help or point me in the right direction.

Re: [BETA] SEO Urls V2

Posted: Mon Jul 02, 2007 8:18 pm
by hinksta
or it could be this

Code: Select all


Re: [BETA] SEO Urls V2

Posted: Wed Jul 18, 2007 10:00 pm
by abhishek1711
hi this mod somehow shoes an error after being installed. i tried evrything the instructions said , bt have no knowledge of php coding etc.

i think i need som1 who knows the stuff to do it , as my forum has a bunch of mods so i dont wanna messup anyhting

plz pm me ur offer at

can have a look at the mods my forum has -

Re: [BETA] SEO Urls V2

Posted: Thu Jul 19, 2007 6:36 am
by Baby Boy
I am using this mod on a clean vanilla phpBB on my localserver... yet I am getting a 404 Page Not Found error. I know it says to consult the service provider, but I don't know the first thing wrong with this thing. Is anyone able to list the possibilities and exactly why the 404 Page Not Found may be coming up.

Any help is appreciate.

P.S. Apache's "Mod ReWrite" module is activated... is there any other things that need to be activated, whether its in the Apache config file or the PHP.ini file?

Re: [BETA] SEO Urls V2

Posted: Tue Sep 04, 2007 3:06 pm
by mrix2000
Real love this mod and have used it on a few of my forums :D unfortunately I have tried it on the phpbb thats installed / intergrated into my subdreamer but have conflicting .htacess mod re-right etc.
my route . htaccess is this

<Files config.php>
Deny from all
Options All -Indexes
Options +FollowSymLinks
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php
RewriteEngine On

and I have my forum in a sub folder called " forum "
my question is how can I add the mod re-right code to this excisting code so the site and phpbb forums work?

thanks for any help

Cheers all

Re: [BETA] SEO Urls V2

Posted: Tue Sep 04, 2007 6:11 pm
by ChrisBa

I just installed this a few days ago and am having a few problems.

Well just 1 actually.. the site is

The first forum is called CSPL Schedule, and the link showing up for it is viewforum,f,19.html

The second forum is called CSPL Discussion, and the link showing up for it is cspl-schedule-f1.html

The third is called CSPL Results, and the link showing up for it is discussion-f4.html

and it just keeps going and going like it.. i tried deleting the CSPL Schedule forum, and then the CSPL Discussion showed up as viewforum,f,1.html and the rest were still off..

I double checked all of the file edits and they appear correct.. any help would be appreciated. I guess I should mention that all of the topics show up ok, its just the forums that appear to be not working properly.

Re: [BETA] SEO Urls V2

Posted: Wed Sep 05, 2007 3:10 pm
by mrix2000
Hello all, this is a really nice mod for the urls but for the titles its not so good in my mind as what I get is
View Topic - whatever post
View Forum - whateverpost

What I mean is what we gain on the nice url`s we lose from the browser title etc.
As its common practice that google will see the first couple of keywords as the most important etc

Anyway of changing this at all to leave out the View Topic and View Forum ?

Cheers all

Re: [BETA] SEO Urls V2

Posted: Wed Sep 05, 2007 9:50 pm
by Peter77sx
oops.. that wasn't it.

Re: [BETA] SEO Urls V2

Posted: Sat Sep 15, 2007 11:05 am
by bhoopalan
Look @ my site...

its re-directing to the SEO pages.... but then it shows the page can't be displated.... :(

what shud i do?

Re: [BETA] SEO Urls V2

Posted: Mon Oct 15, 2007 4:42 pm
by yangqiceng
Parse error: syntax error, unexpected ',' in /mnt/gs02/herd02/19886/domains/ on line 432
How to solve it?

please mail to admin at

thank you very much!

Re: [BETA] SEO Urls V2

Posted: Sat Oct 20, 2007 5:19 am
by Baby Boy
Can someone give me a ReWrite for the "Bookmarks" mod?

I added the "Bookmarks" mod and the SEO URL v2. Unfortunately, I get a 404 error when I try to bookmark the topic. It does bookmark the topic but when the link is clicked, I get a 404 page which is not big with my members. Can anyone work around this.

Here is what the SEO URL mod is changing it to: ... ,true.html

I want to restrict the SEO URL's from changing the URL and keeping it the same way its supposed to be

'U_BOOKMARK_ACTION' => append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&start=$start&postdays=$post_days&postorder=$post_order&highlight=" . $HTTP_GET_VARS['highlight'] . $bm_action))

How would I restrict that in the includes/sessions.php file?

Re: [BETA] SEO Urls V2

Posted: Thu Nov 15, 2007 8:51 pm
mgutt wrote:Ich beginne hier eine neue Variante der SEO Urls oder auch Short Urls genannt.

Die Titel der Beiträge und Foren werden mit in der Url dargestellt und das ohne jegliche Datenbankabfragen. (=schnell)

Der Mod setzt "mod_rewrite" voraus. Ob dies aktiv ist könnt ihr wie hier testen:

- seit der Version 1.0.5 wurde nur die "function append_sid..." aus der sessions.php verändert, einfach komplett ersetzen.

Ein Demo-Board gibts hier:


Add Ons (können installiert werden, müssen aber nicht)

- Doppelten Content vermeiden:
Viele Seiten in eurem Forum sind über verschiedene Adressen erreichbar. Eine Themenseite beispielsweise kann man mit ca. 20 verschiedenen URLs erreichen. Solche Verdopplung Eurer Seiten, sieht die Suchmaschine ungern und wertet es im schlimmsten Fall sogar als Spam.

Die Double Content Addons befinden sich im Downloadpack unter "addons/avoid_double_content.txt".

- Alte Short Urls in neue Seo Urls wandeln (z.B. wenn ihr die Short Urls von larsneo installiert hattet)
Umwandeln könnt ihr mit der forward.php und den codehinweisen aus der betreffenden readme.txt.

Weitere benötigte Änderungen für Mods:

Anleitung zum selber anpassen von Mods


eine andere recent.php:

Similar topic Mod:

Report Post Mod:

Intro & Portal Mod (AWSW):

Album Mod (Smartor)

Pseudo Subforums

Simple Subforums

ahoj já mám problém tímto po instalování modu Gehe zu Seite 1, 2 eror HTTP 404

Previous - eror HTTP 404


start_letter.html - eror HTTP 404 - Soubor nenalezen
Internet Explorer

Code: Select all

// Start Sort Topics Alphabetically MOD

// Begin Configuration Section
// Change this to whatever you want the divider to be. Be sure to keep both apostrophies.
$divider = ', ';
// End Configuration Section

// Do not change anything below this line.
$total_letters_count = count($letters_array);
$this_letter_number = 0;

	'L_SORT_ALPHABETICALLY' => $lang['Sort_alphabetically'],
	'L_ALL_TOPICS' => $lang['All_Topics'],
	'DIVIDER' => $divider,
	'U_ALL_TOPICS' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id&start_letter=&topicdays=$topic_days"),

foreach ( $letters_array as $letter )
	$template->assign_block_vars("alphabetical_sort", array(
		'LETTER' => $letter,
		'U_LETTER' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id&start_letter=$letter&topicdays=$topic_days"),
		'DIVIDER' => ( $this_letter_number != $total_letters_count ) ? $divider : '',
//End Sort Topics Alphabetically MOD