[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.
cobby
Registered User
Posts: 9
Joined: Sun Mar 19, 2006 2:35 am
Location: Presque Isle, Me
Contact:

Re: [BETA] SEO Urls V2

Post by cobby » Thu May 31, 2007 10:06 pm

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
http://www.caninepapillomavirus.com/forum/

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
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName www.caninepapillomavirus.com
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]
</IfModule>
# END WordPress

<Files config.php> 
Deny from all 
</Files> 

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?

lesmith
Registered User
Posts: 3
Joined: Thu Jun 07, 2007 2:48 pm

Re: [BETA] SEO Urls V2

Post by lesmith » Thu Jun 07, 2007 2:58 pm

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 
</Files>
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.

http://www.domain.com/forums/general-di ... 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.

ToXiQ
Registered User
Posts: 69
Joined: Mon Jun 05, 2006 4:54 pm

Re: [BETA] SEO Urls V2

Post by ToXiQ » Sun Jun 24, 2007 6:25 pm

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

/test

put in ther 2 files

alice.html with followin content:

Code: Select all

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

Code: Select all

<html>
   <head>
      <title>bob webpage</title>
   </head>
   <body>
      <p>
         This is bob webpage
      </p>
   </body>
</html>
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 
</Files> 

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

192.168.0.1 - - [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

hinksta
Registered User
Posts: 3
Joined: Mon Jul 02, 2007 3:24 pm

Re: [BETA] SEO Urls V2

Post by hinksta » Mon Jul 02, 2007 5:49 pm

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
//
$forum = isset($HTTP_GET_VARS[POST_FORUM_URL]) && ctype_digit($HTTP_GET_VARS[POST_FORUM_URL]) ? $HTTP_GET_VARS[POST_FORUM_URL] : false;
$topic = isset($HTTP_GET_VARS[POST_TOPIC_URL]) && ctype_digit($HTTP_GET_VARS[POST_TOPIC_URL]) ? $HTTP_GET_VARS[POST_TOPIC_URL] : false;
$post = isset($HTTP_GET_VARS[POST_POST_URL]) && ctype_digit($HTTP_GET_VARS[POST_POST_URL]) ? $HTTP_GET_VARS[POST_POST_URL] : false;
Hope you can help or point me in the right direction.

hinksta
Registered User
Posts: 3
Joined: Mon Jul 02, 2007 3:24 pm

Re: [BETA] SEO Urls V2

Post by hinksta » Mon Jul 02, 2007 8:18 pm

or it could be this

Code: Select all

<title>".make_xml_compatible(strip_tags($row['topic_title']))."</title>
                                        <link>".$base_url."viewtopic.".$phpEx."?".POST_POST_URL."=".$row['topic_last_post_id']."#".$row['topic_last_post_id']."</link>

abhishek1711
Registered User
Posts: 528
Joined: Tue Apr 17, 2007 6:08 am
Location: India
Contact:

Re: [BETA] SEO Urls V2

Post by abhishek1711 » Wed Jul 18, 2007 10:00 pm

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 abhishek@ibsrocks.com

can have a look at the mods my forum has - http://www.ibsrocks.com

User avatar
Baby Boy
Registered User
Posts: 207
Joined: Fri Jun 25, 2004 6:40 am
Contact:

Re: [BETA] SEO Urls V2

Post by Baby Boy » Thu Jul 19, 2007 6:36 am

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?
Need a Fresh phpBB Installed, Upgraded or Hooked Up with Some NICE Mods. Send me an email... mdstreetsoulja@gmail.com for more info.

CashTalkz Dot Net - Participate in the Forum and Earn Money!

mrix2000
Registered User
Posts: 644
Joined: Sun Dec 03, 2006 2:23 pm

Re: [BETA] SEO Urls V2

Post by mrix2000 » Tue Sep 04, 2007 3:06 pm

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
</Files>
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
mrix

ChrisBa
Registered User
Posts: 1
Joined: Tue Sep 04, 2007 6:06 pm

Re: [BETA] SEO Urls V2

Post by ChrisBa » Tue Sep 04, 2007 6:11 pm

Hey,

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

Well just 1 actually.. the site is splshows.com/forum/

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.

mrix2000
Registered User
Posts: 644
Joined: Sun Dec 03, 2006 2:23 pm

Re: [BETA] SEO Urls V2

Post by mrix2000 » Wed Sep 05, 2007 3:10 pm

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
mrix

Peter77sx
Registered User
Posts: 3257
Joined: Wed Nov 09, 2005 2:51 pm

Re: [BETA] SEO Urls V2

Post by Peter77sx » Wed Sep 05, 2007 9:50 pm

oops.. that wasn't it.

bhoopalan
Registered User
Posts: 340
Joined: Sun Jul 22, 2007 11:02 am

Re: [BETA] SEO Urls V2

Post by bhoopalan » Sat Sep 15, 2007 11:05 am

Look @ my site...

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

what shud i do?

yangqiceng
Registered User
Posts: 1
Joined: Mon Oct 15, 2007 4:39 pm

Re: [BETA] SEO Urls V2

Post by yangqiceng » Mon Oct 15, 2007 4:42 pm

Parse error: syntax error, unexpected ',' in /mnt/gs02/herd02/19886/domains/forum.w797.com/html/includes/sessions.php on line 432
How to solve it?

please mail to admin at w757.com

thank you very much!

User avatar
Baby Boy
Registered User
Posts: 207
Joined: Fri Jun 25, 2004 6:40 am
Contact:

Re: [BETA] SEO Urls V2

Post by Baby Boy » Sat Oct 20, 2007 5:19 am

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: http://demobb.cashtalkz.net/welcome-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?
Need a Fresh phpBB Installed, Upgraded or Hooked Up with Some NICE Mods. Send me an email... mdstreetsoulja@gmail.com for more info.

CashTalkz Dot Net - Participate in the Forum and Earn Money!

AVAST
Registered User
Posts: 5
Joined: Sat Dec 23, 2006 7:18 am

Re: [BETA] SEO Urls V2

Post by AVAST » 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:
http://www.phpbb.de/viewtopic.php?p=681388#681388

History:
- 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: http://www.evop.de

Download


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
http://www.phpbb.de/viewtopic.php?p=728051#728051

recent.php:
http://www.phpbb.de/viewtopic.php?p=679208#679208

eine andere recent.php:
http://www.phpbb.de/viewtopic.php?p=685076#685076

Similar topic Mod:
http://www.phpbb.de/viewtopic.php?p=719705#719705

Report Post Mod:
http://www.phpbb.de/viewtopic.php?p=705847#705847
und
http://www.phpbb.de/viewtopic.php?p=704796#704796

Intro & Portal Mod (AWSW):
http://www.phpbb.de/viewtopic.php?p=721375#721375

Album Mod (Smartor)
http://www.phpbb.de/viewtopic.php?p=679083#679083

Pseudo Subforums
http://www.phpbb.de/viewtopic.php?p=727394#727394

Simple Subforums
http://www.phpbb.de/viewtopic.php?p=728163#728163


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

Previous - eror HTTP 404

zajimavosti-na-vase-bloky-a-weby-f68,start_letter.html

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;

$template->assign_vars(array(
	'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 )
{
	$this_letter_number++;
	
	$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 
:cry:

Post Reply

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